mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 05:45:42 +03:00
parent
72d2ac09e3
commit
d85009a2e9
2 changed files with 5 additions and 5 deletions
|
@ -168,7 +168,7 @@ void AccountSettings::slotFolderWizardAccepted()
|
|||
folderMan->slotScheduleAllFolders();
|
||||
emit folderChanged();
|
||||
}
|
||||
buttonsSetEnabled();
|
||||
slotButtonsSetEnabled();
|
||||
}
|
||||
|
||||
void AccountSettings::slotFolderWizardRejected()
|
||||
|
@ -193,12 +193,12 @@ void AccountSettings::slotAddFolder( Folder *folder )
|
|||
folderToModelItem( item, folder );
|
||||
_model->appendRow( item );
|
||||
// in order to update the enabled state of the "Sync now" button
|
||||
connect(folder, SIGNAL(syncStateChange()), this, SLOT(buttonsSetEnabled()), Qt::UniqueConnection);
|
||||
connect(folder, SIGNAL(syncStateChange()), this, SLOT(slotButtonsSetEnabled()), Qt::UniqueConnection);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void AccountSettings::buttonsSetEnabled()
|
||||
void AccountSettings::slotButtonsSetEnabled()
|
||||
{
|
||||
bool haveFolders = ui->_folderList->model()->rowCount() > 0;
|
||||
|
||||
|
@ -379,7 +379,7 @@ void AccountSettings::setFolderList( const Folder::Map &folders )
|
|||
if (idx.isValid()) {
|
||||
ui->_folderList->setCurrentIndex(idx);
|
||||
}
|
||||
buttonsSetEnabled();
|
||||
slotButtonsSetEnabled();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -49,7 +49,6 @@ public:
|
|||
~AccountSettings();
|
||||
|
||||
void setFolderList( const Folder::Map& );
|
||||
void buttonsSetEnabled();
|
||||
|
||||
signals:
|
||||
void folderChanged();
|
||||
|
@ -65,6 +64,7 @@ public slots:
|
|||
void slotFolderOpenAction( const QString& );
|
||||
void slotSetProgress(const QString&, const Progress::Info& progress);
|
||||
void slotProgressProblem(const QString& folder, const Progress::SyncProblem& problem);
|
||||
void slotButtonsSetEnabled();
|
||||
|
||||
void slotUpdateQuota( qint64,qint64 );
|
||||
void slotIgnoreFilesEditor();
|
||||
|
|
Loading…
Reference in a new issue