Commit 6f1b8a6c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix decrement index and not iterator as discussed with David

Summary: Fix decrement index and not iterator

Reviewers: dfaure, anthonyfieroni

Reviewed By: dfaure, anthonyfieroni

Subscribers: anthonyfieroni, kde-frameworks-devel, kfm-devel

Tags: #dolphin, #frameworks

Differential Revision: https://phabricator.kde.org/D25902
parent 4ec12a85
......@@ -111,7 +111,7 @@ void KioSlaveNotifier::onDirectoryEntered( const QString& directory )
mWatchedDirs.insert( id, 1 );
}
else
*it++;
(*it)++;
}
......@@ -132,7 +132,7 @@ void KioSlaveNotifier::onDirectoryLeft( const QString& directory )
if( *it == 1 )
mWatchedDirs.erase( it );
else
*it--;
(*it)--;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment