X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fmainwindow.cpp;h=77dc946213ef20850247fc0b5acf15f51b820df3;hb=f2040dcb783986fd478e910a13b6c9bcf8a0a4be;hp=45d805a8d6f87f2c08eb649cbdf930c70dca48df;hpb=6de38b17e7a9182b6557104dd3a902bb7784db95;p=pulseview.git diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 45d805a..77dc946 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -273,7 +273,8 @@ void MainWindow::save_ui_settings() dynamic_pointer_cast< devices::HardwareDevice > (session->device()); - if (device->hardware_device()->driver()->name() == "demo") + if (device && + device->hardware_device()->driver()->name() == "demo") continue; }