mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
Merge pull request #11809 from malleoz/malleo/savestate-action-cancel-upstream
Qt: Prevent savestate load/save on empty filename
This commit is contained in:
commit
2fa84c73f1
@ -1352,7 +1352,8 @@ void MainWindow::StateLoad()
|
|||||||
QString path =
|
QString path =
|
||||||
DolphinFileDialog::getOpenFileName(this, tr("Select a File"), QDir::currentPath(),
|
DolphinFileDialog::getOpenFileName(this, tr("Select a File"), QDir::currentPath(),
|
||||||
tr("All Save States (*.sav *.s##);; All Files (*)"));
|
tr("All Save States (*.sav *.s##);; All Files (*)"));
|
||||||
State::LoadAs(path.toStdString());
|
if (!path.isEmpty())
|
||||||
|
State::LoadAs(path.toStdString());
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::StateSave()
|
void MainWindow::StateSave()
|
||||||
@ -1360,7 +1361,8 @@ void MainWindow::StateSave()
|
|||||||
QString path =
|
QString path =
|
||||||
DolphinFileDialog::getSaveFileName(this, tr("Select a File"), QDir::currentPath(),
|
DolphinFileDialog::getSaveFileName(this, tr("Select a File"), QDir::currentPath(),
|
||||||
tr("All Save States (*.sav *.s##);; All Files (*)"));
|
tr("All Save States (*.sav *.s##);; All Files (*)"));
|
||||||
State::SaveAs(path.toStdString());
|
if (!path.isEmpty())
|
||||||
|
State::SaveAs(path.toStdString());
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::StateLoadSlot()
|
void MainWindow::StateLoadSlot()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user