hf 10
This commit is contained in:
+6
-3
@@ -83,11 +83,14 @@ void Statistics::addToDestinationsList(const QString &dest)
|
||||
{
|
||||
static QMutex mutex;
|
||||
mutex.lock();
|
||||
if (lastDestinations().size() >= g::c::LAST_AND_TOP_LIST_SIZE)
|
||||
if (not lastDestinations().contains(dest))
|
||||
{
|
||||
m_lastDestinations.pop_back();
|
||||
if (lastDestinations().size() >= g::c::LAST_AND_TOP_LIST_SIZE)
|
||||
{
|
||||
m_lastDestinations.pop_back();
|
||||
}
|
||||
m_lastDestinations.push_front(dest);
|
||||
}
|
||||
m_lastDestinations.push_front(dest);
|
||||
mutex.unlock();
|
||||
|
||||
DBManager db;
|
||||
|
||||
Reference in New Issue
Block a user