From: Soeren Apel Date: Sat, 3 Sep 2016 22:17:32 +0000 (+0200) Subject: MainWindow: Don't return bogus view X-Git-Tag: pulseview-0.4.0~248 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=82f8a42ba990894356fedd141bae2579ff5373a8;p=pulseview.git MainWindow: Don't return bogus view --- 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,