Commit 37a45185 authored by Elvis Angelaccio's avatar Elvis Angelaccio

Prevent opening setting dialog twice

The settings dialog is not modal, so we need to check whether we are
already showing it.
parent 645230c5
......@@ -255,6 +255,10 @@ void MainWindow::quit()
void MainWindow::showSettings()
{
if (KConfigDialog::showDialog(QStringLiteral("settings"))) {
return;
}
Interface *iface = qobject_cast<Interface*>(m_part);
Q_ASSERT(iface);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment