Fix compile.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=837743
This commit is contained in:
Robert Knight
2008-07-25 15:46:24 +00:00
parent 8d3e6fad20
commit f3147ff807

View File

@@ -396,7 +396,8 @@ void MainWindow::showShortcutsDialog()
// sync shortcuts for non-session actions (defined in "konsoleui.rc") in other main windows
foreach(QWidget* widget, QApplication::topLevelWidgets())
{
if (MainWindow* window = qobject_cast<MainWindow*>(widget) && window != this)
MainWindow* window = qobject_cast<MainWindow*>(widget);
if (window && window != this)
syncActiveShortcuts(window->actionCollection(),actionCollection());
}
// sync shortcuts for session actions (defined in "sessionui.rc") in other session controllers.