From 7aab63558525a8c6e17d39bdc4e3691baa02266e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 14 Dec 2015 22:34:15 -0800 Subject: Remove support for older libgit2 - we now require 0.23 or later Also fixes a capitalization error that prevented finding libssh2 in some circumstances. And adds a missing include when building with libzip on Mac. Signed-off-by: Dirk Hohndel --- desktop-widgets/mainwindow.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'desktop-widgets/mainwindow.cpp') diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 93cd2d408..62b72441f 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -197,13 +197,7 @@ 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"; -#else enableDisableCloudActions(); -#endif GpsLocation *locationProvider = new GpsLocation(&report_message, this); if (!locationProvider->hasLocationsSource()) { @@ -314,10 +308,8 @@ void MainWindow::on_actionDiveSiteEdit_triggered() { void MainWindow::enableDisableCloudActions() { -#ifdef USE_LIBGIT23_API ui.actionCloudstorageopen->setEnabled(prefs.cloud_verification_status == CS_VERIFIED); ui.actionCloudstoragesave->setEnabled(prefs.cloud_verification_status == CS_VERIFIED); -#endif } PlannerDetails *MainWindow::plannerDetails() const { -- cgit v1.2.3-70-g09d2