1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00

Remove redundant 'selectedFilePath'. This information is stored in the currently selected widget anyway.

This commit is contained in:
Joakim Thorén 2024-11-24 16:58:43 +01:00
parent bdaaa0b584
commit 75ad171285

View File

@ -462,7 +462,6 @@ void MainWindow::on_actionOpenRecent_triggered()
setMinimumWidth(600);
auto onSelect = [this](QListWidgetItem *item) {
selectedFilePath = item->text();
accept();
};
@ -491,7 +490,6 @@ void MainWindow::on_actionOpenRecent_triggered()
QVBoxLayout * layout;
QListWidget * listWidget;
QString selectedFilePath;
};
RecentFileDialog d(recentFiles, this);