mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Fix url parameter, add http
This commit is contained in:
parent
35aee0de00
commit
c9de9810e2
1 changed files with 5 additions and 1 deletions
|
@ -185,7 +185,11 @@ void OwncloudSetup::writeOwncloudConfig()
|
|||
{
|
||||
qDebug() << "*** writing mirall config to " << mirallConfigFile();
|
||||
QSettings settings( mirallConfigFile(), QSettings::IniFormat);
|
||||
settings.setValue("ownCloud/url", _ocWizard->field("OCUrl").toString() );
|
||||
QString url = _ocWizard->field("OCUrl").toString();
|
||||
if( !url.startsWith("http")) {
|
||||
url.prepend( "http://" );
|
||||
}
|
||||
settings.setValue("ownCloud/url", url );
|
||||
settings.setValue("ownCloud/user", _ocWizard->field("OCUser").toString() );
|
||||
settings.setValue("ownCloud/password", _ocWizard->field("OCPasswd").toString() );
|
||||
|
||||
|
|
Loading…
Reference in a new issue