summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-01 09:58:09 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-01 09:58:09 -0700
commit0c2457d9dcb990e906d8e4fa4cbe557546bf8eb9 (patch)
treeb34230a99787f8a2271a2fce3cfa720048d9fe95 /qt-ui/mainwindow.cpp
parente84d8624bb1790ae46d3c7a7b642effb9090b65d (diff)
downloadsubsurface-0c2457d9dcb990e906d8e4fa4cbe557546bf8eb9.tar.gz
Cloud storage: only make this available with new enough libgit2
The credential callback doesn't appear to work (at least not the way I implemented it) with v0.22 and earlier. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index b039af9bb..8630cfbb8 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -148,6 +148,11 @@ MainWindow::MainWindow() : QMainWindow(),
plannerDetails->printPlan()->hide();
ui.menuFile->removeAction(ui.actionPrint);
#endif
+#ifndef USE_LIBGIT23_API
+ ui.menuFile->removeAction(ui.actionCloudstorageopen);
+ ui.menuFile->removeAction(ui.actionCloudstoragesave);
+ qDebug() << "disabled / made invisible the cloud storage stuff";
+#endif
ui.mainErrorMessage->hide();
graphics()->setEmptyState();