]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphintabpage.cpp
Fix crash when restoring a session stored with Dolphin 4.13 or earlier
[dolphin.git] / src / dolphintabpage.cpp
index 82be6d59c108bc715250940230b36d8151c1e6e0..4c49869f77e07d4341b76d450f827ae73199b108 100644 (file)
@@ -187,6 +187,10 @@ QByteArray DolphinTabPage::saveState() const
 
 void DolphinTabPage::restoreState(const QByteArray& state)
 {
+    if (state.isEmpty()) {
+        return;
+    }
+
     QByteArray sd = state;
     QDataStream stream(&sd, QIODevice::ReadOnly);