mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Setup connections to ocinfo when needed.
This commit is contained in:
parent
72e14b3688
commit
cb6b3e1d85
1 changed files with 9 additions and 7 deletions
|
@ -173,11 +173,6 @@ FolderWizardTargetPage::FolderWizardTargetPage()
|
||||||
_timer->setSingleShot( true );
|
_timer->setSingleShot( true );
|
||||||
connect( _timer, SIGNAL(timeout()), SLOT(slotTimerFires()));
|
connect( _timer, SIGNAL(timeout()), SLOT(slotTimerFires()));
|
||||||
|
|
||||||
connect( ownCloudInfo::instance(), SIGNAL(ownCloudDirExists(QString,QNetworkReply*)),
|
|
||||||
SLOT(slotDirCheckReply(QString,QNetworkReply*)));
|
|
||||||
connect( ownCloudInfo::instance(), SIGNAL(webdavColCreated(QNetworkReply::NetworkError)),
|
|
||||||
SLOT(slotCreateRemoteFolderFinished( QNetworkReply::NetworkError )));
|
|
||||||
|
|
||||||
#if QT_Version >= 0x040700
|
#if QT_Version >= 0x040700
|
||||||
_ui.OCFolderLineEdit->setPlaceholderText(QApplication::translate("FolderWizardTargetPage", "root", 0, QApplication::UnicodeUTF8));
|
_ui.OCFolderLineEdit->setPlaceholderText(QApplication::translate("FolderWizardTargetPage", "root", 0, QApplication::UnicodeUTF8));
|
||||||
_ui.localFolder2LineEdit->setPlaceholderText(QApplication::translate("FolderWizardTargetPage", "/home/local", 0, QApplication::UnicodeUTF8));
|
_ui.localFolder2LineEdit->setPlaceholderText(QApplication::translate("FolderWizardTargetPage", "/home/local", 0, QApplication::UnicodeUTF8));
|
||||||
|
@ -286,8 +281,15 @@ void FolderWizardTargetPage::initializePage()
|
||||||
/* check the owncloud configuration file and query the ownCloud */
|
/* check the owncloud configuration file and query the ownCloud */
|
||||||
ownCloudInfo *ocInfo = ownCloudInfo::instance();
|
ownCloudInfo *ocInfo = ownCloudInfo::instance();
|
||||||
if( ocInfo->isConfigured() ) {
|
if( ocInfo->isConfigured() ) {
|
||||||
connect(ocInfo,SIGNAL(ownCloudInfoFound(QString,QString,QString,QString)),SLOT(slotOwnCloudFound(QString,QString,QString,QString)));
|
connect( ocInfo, SIGNAL(ownCloudInfoFound(QString,QString,QString,QString)),
|
||||||
connect(ocInfo,SIGNAL(noOwncloudFound(QNetworkReply*)),SLOT(slotNoOwnCloudFound(QNetworkReply*)));
|
SLOT(slotOwnCloudFound(QString,QString,QString,QString)));
|
||||||
|
connect( ocInfo, SIGNAL(noOwncloudFound(QNetworkReply*)),
|
||||||
|
SLOT(slotNoOwnCloudFound(QNetworkReply*)));
|
||||||
|
connect( ocInfo, SIGNAL(ownCloudDirExists(QString,QNetworkReply*)),
|
||||||
|
SLOT(slotDirCheckReply(QString,QNetworkReply*)));
|
||||||
|
connect( ocInfo, SIGNAL(webdavColCreated(QNetworkReply::NetworkError)),
|
||||||
|
SLOT(slotCreateRemoteFolderFinished( QNetworkReply::NetworkError )));
|
||||||
|
|
||||||
connect(_ui._buttCreateFolder, SIGNAL(clicked()), SLOT(slotCreateRemoteFolder()));
|
connect(_ui._buttCreateFolder, SIGNAL(clicked()), SLOT(slotCreateRemoteFolder()));
|
||||||
ocInfo->checkInstallation();
|
ocInfo->checkInstallation();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue