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 08f7e7f1cf
commit baf4e8692e

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