mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
Fix SEGV on empty HomeWindow
.. if there are no charts homewindow crashes. oops.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user