From 7d809be79f1a8b075272dba91893bfe9086fa079 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Tue, 8 May 2018 23:38:57 +0300 Subject: Hide SnackBar initially & guard against access of an empty list --- src/MainWindow.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/MainWindow.cc') diff --git a/src/MainWindow.cc b/src/MainWindow.cc index 745fb210..e256e6c9 100644 --- a/src/MainWindow.cc +++ b/src/MainWindow.cc @@ -204,7 +204,7 @@ MainWindow::removeOverlayProgressBar() }); // FIXME: Snackbar doesn't work if it's initialized in the constructor. - QTimer::singleShot(100, this, [this]() { + QTimer::singleShot(0, this, [this]() { snackBar_ = QSharedPointer(new SnackBar(this)); connect(chat_page_, &ChatPage::showNotification, -- cgit 1.5.1