summary refs log tree commit diff
path: root/src/MainWindow.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-08 23:38:57 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-08 23:38:57 +0300
commit7d809be79f1a8b075272dba91893bfe9086fa079 (patch)
treef0e6eafed071b6670c2a1ea18ec7c4c761180cf4 /src/MainWindow.cc
parentDon't use shared pointers for cache (diff)
downloadnheko-7d809be79f1a8b075272dba91893bfe9086fa079.tar.xz
Hide SnackBar initially & guard against access of an empty list
Diffstat (limited to 'src/MainWindow.cc')
-rw-r--r--src/MainWindow.cc2
1 files changed, 1 insertions, 1 deletions
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<SnackBar>(new SnackBar(this)); connect(chat_page_, &ChatPage::showNotification,