Fix SEGV on empty HomeWindow

.. if there are no charts homewindow crashes. oops.
This commit is contained in:
Mark Liversedge
2014-05-11 18:33:12 +01:00
parent b7d28eb253
commit 7bbca327bc

View File

@@ -195,7 +195,7 @@ HomeWindow::selected()
if (loaded == false) {
restoreState();
loaded = true;
if (!currentStyle) tabSelected(0);
if (!currentStyle && charts.count()) tabSelected(0);
}
resizeEvent(NULL); // force a relayout