From 7701805dc41cfafc23737b2c05cfa5a842d3d2d8 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Thu, 30 Aug 2012 18:52:50 +0300 Subject: [PATCH] Add a warning window for/against usage of old server versions. --- src/mirall/application.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mirall/application.cpp b/src/mirall/application.cpp index d8514bfeda..fc4fdfdbb5 100644 --- a/src/mirall/application.cpp +++ b/src/mirall/application.cpp @@ -223,6 +223,13 @@ void Application::slotOwnCloudFound( const QString& url, const QString& versionS disconnect( ownCloudInfo::instance(),SIGNAL(noOwncloudFound(QNetworkReply*)), this, SLOT(slotNoOwnCloudFound(QNetworkReply*))); + if( version.startsWith("4.0") ) { + QMessageBox::warning(0, tr("ownCloud Server Mismatch"), + tr("

The configured server for this client is too old.

" + "

Please update to the latest ownCloud server and restart the client.

")); + return; + } + QTimer::singleShot( 0, this, SLOT( slotCheckAuthentication() )); }