projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6de38b1
)
Fix crash when saving session with open files
author
Soeren Apel
<soeren@apelpie.net>
Mon, 29 Aug 2016 16:10:09 +0000
(18:10 +0200)
committer
Soeren Apel
<soeren@apelpie.net>
Mon, 29 Aug 2016 16:10:09 +0000
(18:10 +0200)
pv/mainwindow.cpp
patch
|
blob
|
history
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;
}