Input dialog was in top left of screen, set it to center

This commit is contained in:
2012-04-27 21:38:30 +02:00
parent 2e468c14b4
commit 691b1a603b
2 changed files with 9 additions and 8 deletions

View File

@@ -141,7 +141,7 @@ void SearchPanel::OnButtonChangeAccount()
for(i=0; i < user->GetAccountsNumber(); i++)
accounts << user->_accounts[i].name;
res = QInputDialog::getItem(this, "KissCount", _("Choose a new account"), accounts, 0, false);
res = QInputDialog::getItem(NULL, "KissCount", _("Choose a new account"), accounts, 0, false);
if (!res.size()) return ;
a = (res.length()) ? accounts.indexOf(res) : 0;
@@ -181,7 +181,7 @@ void SearchPanel::OnButtonChangeCategory()
for(i=0; i < user->GetCategoriesNumber(); i++)
categories << _(user->_categories[i].name.toStdString().c_str());
res = QInputDialog::getItem(this, "KissCount", _("Choose a new category"), categories, 0, false);
res = QInputDialog::getItem(NULL, "KissCount", _("Choose a new category"), categories, 0, false);
if (res.length())
{