Commit 74962891 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

Forward close events to KParts::MainWindow

This was supposed to be part of commit c1c104a6. The KMainWindow docs recommend
the parent implementation be called when reimplementing in a subclass.
parent a54d5197
......@@ -259,14 +259,14 @@ void MainWindow::setShowExtractDialog(bool option)
void MainWindow::closeEvent(QCloseEvent *event)
{
Q_UNUSED(event)
// Preview windows don't have a parent, so we need to manually close them.
foreach (QWidget *widget, qApp->topLevelWidgets()) {
if (widget->isVisible()) {
widget->close();
}
}
KParts::MainWindow::closeEvent(event);
}
void MainWindow::quit()
......
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