Skip to content
Snippets Groups Projects
Commit b2c81ecf authored by Rafaël Carré's avatar Rafaël Carré
Browse files

history : reverse logic

parent 89c6de0b
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,7 @@ std::string HistoryItem::serialize (void)
// For the account ID, check also if the accountID corresponds to an existing account
// ie the account may have been removed
std::string accountID(_account_id);
if (_account_id == "" || non_valid_account (_account_id))
if (_account_id == "" || not valid_account (_account_id))
accountID = "empty";
// Serialize it
......@@ -163,7 +163,7 @@ std::string HistoryItem::serialize (void)
}
bool HistoryItem::non_valid_account (std::string id)
bool HistoryItem::valid_account (std::string id)
{
return !Manager::instance().accountExists (id);
return Manager::instance().accountExists (id);
}
......@@ -88,7 +88,7 @@ class HistoryItem
/*
* @return true if the account ID corresponds to a loaded account
*/
bool non_valid_account (std::string);
bool valid_account (std::string);
/*
* Timestamp representing the date of the call
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment