Good deal of code Cleanup.

Rewrite of the way we handle the last used directory for the loading /
saving of files.
we didn't reuse anything for the code, and that's error prone
and also dumb =p. Reworked that so we have a nice method
to help us out on that. lastUsedDir and updateLastUsedDir

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2013-11-14 13:42:26 -02:00 committed by Dirk Hohndel
parent e2a4da767d
commit b28237309a
2 changed files with 23 additions and 30 deletions

View file

@ -126,6 +126,8 @@ private:
void file_save_as();
void beginChangeState(CurrentState s);
void saveSplitterSizes();
QString lastUsedDir();
void updateLastUsedDir(const QString& s);
};
MainWindow *mainWindow();