projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix crash when saving session with open files
[pulseview.git]
/
pv
/
mainwindow.cpp
diff --git
a/pv/mainwindow.cpp
b/pv/mainwindow.cpp
index 45d805a8d6f87f2c08eb649cbdf930c70dca48df..77dc946213ef20850247fc0b5acf15f51b820df3 100644
(file)
--- 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;
}