mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 17:37:36 +03:00
take local folder path from property
This gets set by slotSelectFolder() and from the wizards caller.
This commit is contained in:
parent
e8889530b0
commit
e2c0792043
1 changed files with 2 additions and 1 deletions
|
@ -306,7 +306,7 @@ QString OwncloudSetupPage::url() const
|
|||
|
||||
QString OwncloudSetupPage::localFolder() const
|
||||
{
|
||||
QString folder = _ui.pbSelectLocalFolder->text();
|
||||
QString folder = wizard()->property("localFolder").toString();
|
||||
return folder;
|
||||
}
|
||||
|
||||
|
@ -380,6 +380,7 @@ void OwncloudSetupPage::slotSelectFolder()
|
|||
QString dir = QFileDialog::getExistingDirectory(0, tr("Local Sync Folder"), QDir::homePath());
|
||||
if( !dir.isEmpty() ) {
|
||||
_ui.pbSelectLocalFolder->setText(dir);
|
||||
wizard()->setProperty("localFolder", dir);
|
||||
slotHandleUserInput();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue