Pass explicit parent to QAction ctor, fixes build on Ubuntu Xenial.
authorMilian Wolff <mail@milianw.de>
Sun, 12 Feb 2017 12:31:06 +0000 (13:31 +0100)
committerMilian Wolff <mail@milianw.de>
Sun, 12 Feb 2017 12:31:06 +0000 (13:31 +0100)
Seems like the default of `= nullptr` has been added recently to Qt.

BUG: 376247

src/analyze/gui/mainwindow.cpp

index 1fea0d0..586d87d 100644 (file)
@@ -80,7 +80,7 @@ void addContextMenu(QTreeView* treeView, int role)
         }
         auto menu = new QMenu(treeView);
         auto openFile =
-            new QAction(QIcon::fromTheme(QStringLiteral("document-open")), QObject::tr("Open file in editor"));
+            new QAction(QIcon::fromTheme(QStringLiteral("document-open")), QObject::tr("Open file in editor"), menu);
         QObject::connect(openFile, &QAction::triggered, openFile, [location] {
             /// FIXME: add settings to let user configure this
             auto url = QUrl::fromLocalFile(location->file);