aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mainwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index 812efeb..37b0f19 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -88,8 +88,11 @@ void MainWindow::updateSpaceList()
88{ 88{
89 qDebug() << "updateSpaceList()"; 89 qDebug() << "updateSpaceList()";
90 QString defaultSpace = this->qsettings.value("hackerspace").toString(); 90 QString defaultSpace = this->qsettings.value("hackerspace").toString();
91 QString defaultDirectoryURL = this->qsettings.value("directory").toString();
92 if(defaultDirectoryURL == "")
93 { defaultDirectoryURL = "https://raw.githubusercontent.com/SpaceApi/OpenSpaceDirectory/master/directory.json" ; }
91 94
92 QUrl url("http://spaceapi.net/directory.json"); 95 QUrl url(defaultDirectoryURL);
93 QJsonObject json = QJsonDocument::fromJson(this->download(url)).object(); 96 QJsonObject json = QJsonDocument::fromJson(this->download(url)).object();
94 97
95 ui->comboBox->setDisabled(true); 98 ui->comboBox->setDisabled(true);
..