mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-21 00:18:43 +00:00
Save the last directoy where we loaded a tilebank from.
--HG-- branch : gsoc2014-dfighter
This commit is contained in:
parent
f25d152f4f
commit
04d17b7a05
2 changed files with 5 additions and 1 deletions
|
@ -264,7 +264,7 @@ void TileEditorMainWindow::open()
|
||||||
{
|
{
|
||||||
QString fn = QFileDialog::getOpenFileName( this,
|
QString fn = QFileDialog::getOpenFileName( this,
|
||||||
tr( "Loading tilebank" ),
|
tr( "Loading tilebank" ),
|
||||||
"",
|
m_lastOpenDir,
|
||||||
tr( "tilebank files (*.tilebank)" ) );
|
tr( "tilebank files (*.tilebank)" ) );
|
||||||
|
|
||||||
if( fn.isEmpty() )
|
if( fn.isEmpty() )
|
||||||
|
@ -284,6 +284,9 @@ void TileEditorMainWindow::open()
|
||||||
onTileBankLoaded();
|
onTileBankLoaded();
|
||||||
|
|
||||||
m_fileName = fn;
|
m_fileName = fn;
|
||||||
|
|
||||||
|
int idx = fn.lastIndexOf( '/' );
|
||||||
|
m_lastOpenDir = fn.left( idx );
|
||||||
}
|
}
|
||||||
|
|
||||||
void TileEditorMainWindow::onZoomFactor(int level)
|
void TileEditorMainWindow::onZoomFactor(int level)
|
||||||
|
|
|
@ -122,6 +122,7 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
QString m_fileName;
|
QString m_fileName;
|
||||||
|
QString m_lastOpenDir;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // TILE_EDITOR_MAIN_WINDOW_H
|
#endif // TILE_EDITOR_MAIN_WINDOW_H
|
||||||
|
|
Loading…
Reference in a new issue