From 89fada0440c1e3b72afc01cb3052995446a2857d Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sat, 28 Nov 2015 01:18:21 +0100 Subject: refresh button fixes issues caused by former network connection error --- img/qspace.blend | Bin 94001 -> 94003 bytes mainwindow.cpp | 5 +++++ 2 files changed, 5 insertions(+) diff --git a/img/qspace.blend b/img/qspace.blend index 37a979f..e9f8c33 100644 Binary files a/img/qspace.blend and b/img/qspace.blend differ diff --git a/mainwindow.cpp b/mainwindow.cpp index 9385cd6..6149e0c 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -55,6 +55,11 @@ void MainWindow::updateSpaceList() ui->comboBox->setCurrentIndex(ui->comboBox->count()-1); } ui->comboBox->setDisabled(false); + + // in case of a bad network connection the combobox might show an element + // but does not download data. clicking refresh does not solve that, because + // setCurrentIndex does not trigger a refresh in that (rare) case... + this->updateStatus(); // fixes case where setCurrentIndex does not call on_comboBox_currentIndexChanged } QJsonObject json_find(QJsonObject json, QStringList list) -- cgit v1.2.3