Add explanations to fixmes

This commit is contained in:
Christian Kamm 2015-04-23 14:13:13 +02:00
parent a932eac832
commit 0d30e01e98
3 changed files with 4 additions and 3 deletions

View file

@ -264,6 +264,7 @@ void Application::slotAccountStateChanged(int state)
switch (state) {
case AccountState::Connected:
qDebug() << "Enabling sync scheduler, scheduling all folders";
#warning FIXME: this should schedule a sync for the folders of the account that connected
folderMan->setSyncEnabled(true);
folderMan->slotScheduleAllFolders();
break;
@ -302,7 +303,7 @@ void Application::slotUpdateConnectionErrors(int accountState)
_startupNetworkError = accountState == AccountState::NetworkError;
}
#warning FIXME
#warning FIXME: connection errors should be shown per account
#if 0
AccountState *as = AccountStateManager::instance()->accountState();
if (as) {

View file

@ -345,7 +345,7 @@ Folder* FolderMan::setupFolderFromConfigFile(const QString &file) {
targetPath.remove(0,1);
}
#warning fixme
#warning fixme: which account does this folder use?
AccountState* accountState = AccountManager::instance()->accounts().value(0).data();
if (!accountState) {
qWarning() << "can't create folder without an account";

View file

@ -213,7 +213,7 @@ void ownCloudGui::setConnectionErrors( bool /*connected*/, const QStringList& fa
void ownCloudGui::slotComputeOverallSyncStatus()
{
#warning FIXME
#warning FIXME: overall status needs to look at all accounts
if (AccountState *a = AccountManager::instance()->accounts().value(0).data()) {
if (a->isSignedOut()) {
_tray->setIcon(Theme::instance()->folderOfflineIcon(true));