Fix a crash in Assistant.
authorPierre Rossi <pierre.rossi@nokia.com>
Wed, 1 Aug 2012 12:34:21 +0000 (14:34 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 2 Aug 2012 11:59:55 +0000 (13:59 +0200)
Change-Id: I8fa3f5845db515d5f9efc74acd392058ef1e1ec5
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
src/assistant/assistant/mainwindow.cpp

index 8065c59..36f4ed6 100644 (file)
@@ -945,7 +945,7 @@ void MainWindow::updateApplicationFont()
     if (helpEngine.usesAppFont())
         font = helpEngine.appFont();
 
-    const QWidgetList &widgets = qApp->allWidgets();
+    QWidgetList widgets = qApp->allWidgets();
     foreach (QWidget* widget, widgets)
         widget->setFont(font);
 }