[gnote] Mounting should be inside try block
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Mounting should be inside try block
- Date: Sat, 14 Sep 2019 10:05:51 +0000 (UTC)
commit bc1e00ac3ec84b8993a2ca8f40da3fa1dfeb515e
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Sep 14 12:31:01 2019 +0300
Mounting should be inside try block
src/addins/gvfssyncservice/gvfssyncserviceaddin.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/addins/gvfssyncservice/gvfssyncserviceaddin.cpp
b/src/addins/gvfssyncservice/gvfssyncserviceaddin.cpp
index 007e10a2..1ad049c4 100644
--- a/src/addins/gvfssyncservice/gvfssyncserviceaddin.cpp
+++ b/src/addins/gvfssyncservice/gvfssyncserviceaddin.cpp
@@ -236,10 +236,10 @@ bool GvfsSyncServiceAddin::save_configuration(const sigc::slot<void, bool, Glib:
// TODO: this is hacky, need to make save into a proper async operation
Glib::Thread::create([this, &save_exception, sync_uri]() {
- auto path = Gio::File::create_for_uri(sync_uri);
- if(!mount(path))
- throw gnote::sync::GnoteSyncException(_("Could not mount the path: %s. Please, check your settings"));
try {
+ auto path = Gio::File::create_for_uri(sync_uri);
+ if(!mount(path))
+ throw gnote::sync::GnoteSyncException(_("Could not mount the path: %s. Please, check your
settings"));
if(sharp::directory_exists(path) == false) {
if(!sharp::directory_create(path)) {
DBG_OUT("Could not create \"%s\"", sync_uri.c_str());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]