diff --git a/src/mirall/mirallconfigfile.cpp b/src/mirall/mirallconfigfile.cpp index 47098d1a7..d3d047c38 100644 --- a/src/mirall/mirallconfigfile.cpp +++ b/src/mirall/mirallconfigfile.cpp @@ -136,25 +136,17 @@ bool MirallConfigFile::connectionExists( const QString& conn ) void MirallConfigFile::writeOwncloudConfig( const QString& connection, const QString& url, const QString& user, - const QString& passwd, - bool https, bool skipPwd ) + const QString& passwd ) { const QString file = configFile(); + bool skipPwd = false; // can be refactored - remove it. qDebug() << "*** writing mirall config to " << file << " Skippwd: " << skipPwd; QSettings settings( file, QSettings::IniFormat); settings.setIniCodec( "UTF-8" ); - QString cloudsUrl( url ); - - if( !cloudsUrl.startsWith( QLatin1String("http")) ) { - if (https) - cloudsUrl.prepend(QLatin1String("https://")); - else - cloudsUrl.prepend(QLatin1String("http://")); - } settings.beginGroup( connection ); - settings.setValue( QLatin1String("url"), cloudsUrl ); + settings.setValue( QLatin1String("url"), url ); settings.setValue( QLatin1String("user"), user ); diff --git a/src/mirall/mirallconfigfile.h b/src/mirall/mirallconfigfile.h index 167cf1544..d5988c5fb 100644 --- a/src/mirall/mirallconfigfile.h +++ b/src/mirall/mirallconfigfile.h @@ -50,8 +50,7 @@ public: void writeOwncloudConfig( const QString& connection, const QString& url, const QString& user, - const QString& passwd, - bool https, bool skipPwd ); + const QString& passwd ); void removeConnection( const QString& connection = QString() );