Fixed crash on start on some Windows configurations
see issue 1022
This commit is contained in:
@@ -258,7 +258,7 @@ EditorPanel::EditorPanel (FilePanel* filePanel)
|
||||
if (safe_file_test (options.lastSaveAsPath, Glib::FILE_TEST_IS_DIR))
|
||||
saveAsDialog = new SaveAsDialog (options.lastSaveAsPath);
|
||||
else
|
||||
saveAsDialog = new SaveAsDialog (Glib::get_user_special_dir (G_USER_DIRECTORY_PICTURES));
|
||||
saveAsDialog = new SaveAsDialog (safe_get_user_picture_dir());
|
||||
|
||||
saveAsDialog->set_default_size (options.saveAsDialogWidth, options.saveAsDialogHeight);
|
||||
|
||||
|
||||
@@ -1475,7 +1475,7 @@ void FileCatalog::buttonBrowsePathPressed () {
|
||||
}
|
||||
else if (FirstChar=="!"){ // user's pictures directory
|
||||
//DecodedPathPrefix = g_get_user_special_dir(G_USER_DIRECTORY_PICTURES);
|
||||
DecodedPathPrefix = Glib::get_user_special_dir (G_USER_DIRECTORY_PICTURES);
|
||||
DecodedPathPrefix = safe_get_user_picture_dir();
|
||||
}
|
||||
|
||||
if (DecodedPathPrefix!=""){
|
||||
|
||||
@@ -102,7 +102,7 @@ void PlacesBrowser::refreshPlacesList () {
|
||||
}
|
||||
|
||||
// append pictures directory
|
||||
hfile = Gio::File::create_for_path (Glib::get_user_special_dir (G_USER_DIRECTORY_PICTURES));
|
||||
hfile = Gio::File::create_for_path (safe_get_user_picture_dir());
|
||||
if (hfile && hfile->query_exists()) {
|
||||
try {
|
||||
Glib::RefPtr<Gio::FileInfo> info = safe_query_file_info (hfile);
|
||||
|
||||
Reference in New Issue
Block a user