Skip to content

Commit

Permalink
Fix issue where changing the file path will cause window to restore t…
Browse files Browse the repository at this point in the history
…o it's saved position.
  • Loading branch information
madsciencecoder committed Jul 28, 2016
1 parent fd4e931 commit 37d4027
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion launcherwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,13 @@ void LauncherWindow::readSettings()
savedPasses = settings.value("pass").toStringList();
settings.endGroup();

readSettingsPath();
}

void LauncherWindow::readSettingsPath()
{
QSettings settings("Shticker-Book-Rewritten", "Shticker-Book-Rewritten");

settings.beginGroup("FilesPath");
filePath = settings.value("path").toString();
settings.endGroup();
Expand Down Expand Up @@ -334,5 +341,5 @@ void LauncherWindow::setFilePath()

chooser->deleteLater();

readSettings();
readSettingsPath();
}
1 change: 1 addition & 0 deletions launcherwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ private slots:
QString cachePath;

void readSettings();
void readSettingsPath();
void writeSettings();
void setFilePath();

Expand Down

0 comments on commit 37d4027

Please sign in to comment.