From fe7749bee62380dac4d5dea00b2f5b20db344cbb Mon Sep 17 00:00:00 2001 From: me_desk Date: Sun, 1 Sep 2013 12:34:15 +0000 Subject: global variable account_id is replaced with static members Accounts::AccountRecord & Accounts::GetCurrentAccount() and SetCurrentAccount() git-svn-id: svn://localhost/project_picapica/trunk@268 fb96df88-216d-11de-830c-f3023f12d8ac --- pica-client/msguirouter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pica-client/msguirouter.cpp') diff --git a/pica-client/msguirouter.cpp b/pica-client/msguirouter.cpp index d4a62c4..b19bc55 100644 --- a/pica-client/msguirouter.cpp +++ b/pica-client/msguirouter.cpp @@ -89,7 +89,7 @@ void MsgUIRouter::delivered(QByteArray to) } else { - History h(config_dbname, QByteArray((const char*)account_id, PICA_ID_SIZE)); + History h(config_dbname, Accounts::GetCurrentAccount().id); h.SetDelivered(to); } -- cgit v1.2.1