Skip to content
Browse files

Fix file write error when offline.sqlite is saved to root dir by default

- Default to user's home directory instead

(cherry-picked from 23a3273)
  • Loading branch information
dakcarto committed Jun 15, 2016
1 parent e1d5402 commit c6457a63a254ff686b6ae4cd8217f4b7d0910392
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/plugins/offline_editing/offline_editing_plugin_gui.cpp
@@ -170,7 +170,7 @@ void QgsOfflineEditingPluginGui::on_buttonBox_helpRequested()
void QgsOfflineEditingPluginGui::restoreState()
QSettings settings;
mOfflineDataPath = settings.value( "Plugin-OfflineEditing/offline_data_path", QDir().absolutePath() ).toString();
mOfflineDataPath = settings.value( "Plugin-OfflineEditing/offline_data_path", QDir::homePath() ).toString();
restoreGeometry( settings.value( "Plugin-OfflineEditing/geometry" ).toByteArray() );

0 comments on commit c6457a6

Please sign in to comment.
You can’t perform that action at this time.