Commit ec4bdbcb authored by Mike Kremer's avatar Mike Kremer
Browse files

OpenFlipper will now be able to start with any stored logger state without crash.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11984 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 63ef4b7a
...@@ -115,8 +115,13 @@ void CoreWidget::showLoggerInSplitView(bool _show) { ...@@ -115,8 +115,13 @@ void CoreWidget::showLoggerInSplitView(bool _show) {
QList<int> wsizes = splitter_->sizes(); QList<int> wsizes = splitter_->sizes();
// Remember old size // Remember old size
if (loggerState_ == OpenFlipper::Options::Normal) if (loggerState_ == OpenFlipper::Options::Normal) {
originalLoggerSize_ = wsizes[1]; if(wsizes.size() > 1) {
originalLoggerSize_ = wsizes[1];
} else {
originalLoggerSize_ = 240;
}
}
if (originalLoggerSize_ == 0) if (originalLoggerSize_ == 0)
originalLoggerSize_ = 240; originalLoggerSize_ = 240;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment