From 82f8a42ba990894356fedd141bae2579ff5373a8 Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Sun, 4 Sep 2016 00:17:32 +0200 Subject: [PATCH] MainWindow: Don't return bogus view --- pv/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 787e1acf..92c92d02 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -163,7 +163,7 @@ shared_ptr MainWindow::get_active_view() const if (entry.first.get() == dock) return entry.second; - return shared_ptr(); + return nullptr; } shared_ptr MainWindow::add_view(const QString &title, -- 2.30.2