mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00: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
@ -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 New Issue
Block a user