Commit 63ef4b7a authored by Mike Kremer's avatar Mike Kremer
Browse files

Fixed crash when starting OF with hidden logger. Additionally, the logger...

Fixed crash when starting OF with hidden logger. Additionally, the logger hides now if switching from in-scene to hidden mode.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11983 383ad7c9-94d9-4d36-a494-682f7c89f535
parent dbb7bd1a
...@@ -492,7 +492,12 @@ CoreWidget( QVector<ViewMode*>& _viewModes, ...@@ -492,7 +492,12 @@ CoreWidget( QVector<ViewMode*>& _viewModes,
// Remember logger size // Remember logger size
wsizes = splitter_->sizes(); wsizes = splitter_->sizes();
originalLoggerSize_ = wsizes[1];
if(wsizes.size() > 1) {
originalLoggerSize_ = wsizes[1];
} else {
originalLoggerSize_ = 240;
}
// ====================================================================== // ======================================================================
// Create ToolBox area // Create ToolBox area
......
...@@ -94,6 +94,9 @@ void CoreWidget::showLogger(OpenFlipper::Options::LoggerState _state) { ...@@ -94,6 +94,9 @@ void CoreWidget::showLogger(OpenFlipper::Options::LoggerState _state) {
} }
case OpenFlipper::Options::Hidden: { case OpenFlipper::Options::Hidden: {
if (loggerState_ == OpenFlipper::Options::InScene)
slidingLogger_->detachWidget();
showLoggerInSplitView(false); showLoggerInSplitView(false);
break; break;
......
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