Skip to content

Commit

Permalink
[GS] [Fix] #363
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorzs committed May 5, 2014
1 parent 6f07479 commit 836e98d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AddressBook/ContactsTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void ContactsTable::onDeleteContact()
QModelIndexList sortFilterIndexes = selection_model->selectedRows();
if (sortFilterIndexes.count() == 0)
return;
if (QMessageBox::question(getKeyhoteeWindow(), tr("Delete Contact"), tr("Are you sure you want to delete selected contact(s)?")) == QMessageBox::Button::No)
if (QMessageBox::question(this, tr("Delete Contact"), tr("Are you sure you want to delete selected contact(s)?")) == QMessageBox::Button::No)
return;
QModelIndexList indexes;
for(const QModelIndex& sortFilterIndex : sortFilterIndexes)
Expand Down
2 changes: 1 addition & 1 deletion Mail/Mailbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ void Mailbox::onDeleteMail()
if (sortFilterIndexes.empty())
return;

if (QMessageBox::question(nullptr, tr("Delete Mail"), tr("Are you sure you want to delete selected email(s)?")) == QMessageBox::Button::No)
if (QMessageBox::question(this, tr("Delete Mail"), tr("Are you sure you want to delete selected email(s)?")) == QMessageBox::Button::No)
return;
QModelIndexList indexes;
for(const QModelIndex& sortFilterIndex : sortFilterIndexes)
Expand Down

0 comments on commit 836e98d

Please sign in to comment.