Do not open multiple setting dialogs to fix #2314 (#2392)

This commit is contained in:
tsunekoh 2020-08-23 01:49:21 +09:00 committed by GitHub
parent b7d1059a1b
commit 4fe94cd959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1568,8 +1568,10 @@ void MainWindow::on_actionRefresh_contents_triggered()
void MainWindow::on_actionPreferences_triggered()
{
if (!findChild<PreferencesDialog*>()) {
auto dialog = new PreferencesDialog(this);
dialog->show();
}
}
void MainWindow::on_actionTabs_triggered()