Commit 06911c66 authored by con's avatar con
Browse files

Don't crash under certain weird conditions.

In case of 'version 1' navigation settings, and only a 'Open Documents'
panel visible, we ended up in an endless loop.
parent e5c7e5cd
......@@ -272,7 +272,7 @@ void NavigationWidget::restoreSettings(QSettings *settings)
} else {
QList<int> sizes;
sizes += 256;
for (int i = views.size()-1; i; --i)
for (int i = views.size()-1; i > 0; --i)
sizes.prepend(512);
setSizes(sizes);
}
......
Supports Markdown
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