mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 21:35:47 +03:00
Account: Don't hardcode WebDAV path
This commit is contained in:
parent
cc5fabdab0
commit
ff95cbd04b
2 changed files with 4 additions and 1 deletions
|
@ -68,6 +68,7 @@ Account::Account(AbstractSslErrorHandler *sslErrorHandler, QObject *parent)
|
|||
, _credentials(0)
|
||||
, _treatSslErrorsAsFailure(false)
|
||||
, _state(Account::Disconnected)
|
||||
, _davPath("remote.php/webdav/")
|
||||
{
|
||||
qRegisterMetaType<Account*>("Account*");
|
||||
}
|
||||
|
|
|
@ -72,7 +72,8 @@ public:
|
|||
InvalidCredidential /// The credidential are invalids and we are asking for them to the user
|
||||
};
|
||||
|
||||
static QString davPath() { return "remote.php/webdav/"; }
|
||||
QString davPath() const { return _davPath; }
|
||||
void setDavPath(const QString&s) { _davPath = s; }
|
||||
|
||||
Account(AbstractSslErrorHandler *sslErrorHandler = 0, QObject *parent = 0);
|
||||
~Account();
|
||||
|
@ -157,6 +158,7 @@ private:
|
|||
bool _treatSslErrorsAsFailure;
|
||||
int _state;
|
||||
static QString _configFileName;
|
||||
QString _davPath; // default "remote.php/webdav/";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue