mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-18 10:26:15 +01:00
Warn when loading a game, if there is already an existing game
This commit is contained in:
parent
cae5f38af5
commit
7195f3415c
1 changed files with 7 additions and 0 deletions
|
@ -718,6 +718,13 @@ void MainWindow::onGameLoad()
|
|||
return;
|
||||
}
|
||||
|
||||
if (m_game)
|
||||
{
|
||||
QString msg = _q("Loading a saved game will stop the current game.");
|
||||
if (!QtCommon::requestConfirmation(msg, "", this))
|
||||
return;
|
||||
}
|
||||
|
||||
QString fileName = QFileDialog::getOpenFileName(this, _q("Load a game"));
|
||||
if (fileName != "")
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue