+// If the default save directory does not exist use /home/user instead (as that's what the save dialog will use)
+// This avoids a situation where save directs to a folder that cannot be accessed with open...
+
+ QString startDirectory;
+
+ if (QFile(defaultSaveDirectory_).exists())
+ {
+ startDirectory = defaultSaveDirectory_;
+ }
+ else
+ {
+ startDirectory = "/home/user/";
+ qDebug () << "default save directory not found";
+ }