mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Some minor cleanups.
This commit is contained in:
parent
066c0ba189
commit
148bdfdcd6
@ -139,6 +139,7 @@ void AccountSettings::slotFolderWizardAccepted()
|
||||
folderMan->slotScheduleAllFolders();
|
||||
emit folderChanged();
|
||||
}
|
||||
buttonsSetEnabled();
|
||||
}
|
||||
|
||||
void AccountSettings::slotFolderWizardRejected()
|
||||
@ -306,9 +307,10 @@ void AccountSettings::setFolderList( const Folder::Map &folders )
|
||||
slotAddFolder( f );
|
||||
}
|
||||
|
||||
QModelIndex idx = _model->index(0, 0);
|
||||
if (idx.isValid())
|
||||
QModelIndex idx = _model->index(0, 0);
|
||||
if (idx.isValid()) {
|
||||
ui->_folderList->setCurrentIndex(idx);
|
||||
}
|
||||
buttonsSetEnabled();
|
||||
|
||||
}
|
||||
@ -394,11 +396,6 @@ void AccountSettings::slotUpdateFolderState( Folder *folder )
|
||||
item = _model->item( ++row );
|
||||
}
|
||||
|
||||
#if 0
|
||||
if( !_fileItemDialog.isNull() && _fileItemDialog->isVisible() ) {
|
||||
_fileItemDialog->setSyncResult( FolderMan::instance()->syncResult(folder) );
|
||||
}
|
||||
#endif
|
||||
if( item ) {
|
||||
folderToModelItem( item, folder );
|
||||
} else {
|
||||
|
||||
@ -600,7 +600,6 @@ void Folder::slotCSyncFinished()
|
||||
|
||||
if (_csyncError) {
|
||||
_syncResult.setStatus(SyncResult::Error);
|
||||
|
||||
qDebug() << " ** error Strings: " << _errors;
|
||||
_syncResult.setErrorStrings( _errors );
|
||||
qDebug() << " * owncloud csync thread finished with error";
|
||||
|
||||
@ -237,7 +237,9 @@ QIcon Theme::syncStateIcon( SyncResult::Status status, bool sysTray ) const
|
||||
case SyncResult::Success:
|
||||
statusIcon = QLatin1String("state-ok");
|
||||
break;
|
||||
case SyncResult::Problem: // Jan wants this.
|
||||
case SyncResult::Problem:
|
||||
statusIcon = QLatin1String("state-information");
|
||||
break;
|
||||
case SyncResult::Error:
|
||||
case SyncResult::SetupError:
|
||||
statusIcon = QLatin1String("state-error"); // FIXME: Use state-problem once we have an icon.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user