Use Qt's dialog where applicable (#1843)

This commit is contained in:
pajlada
2020-10-31 16:42:48 +01:00
committed by GitHub
parent 523874dc21
commit 1ee1e8837f
27 changed files with 118 additions and 62 deletions
+4 -2
View File
@@ -1937,7 +1937,8 @@ void ChannelView::hideEvent(QHideEvent *)
void ChannelView::showUserInfoPopup(const QString &userName)
{
auto *userPopup = new UserInfoPopup(getSettings()->autoCloseUserPopup);
auto *userPopup =
new UserInfoPopup(getSettings()->autoCloseUserPopup, this);
userPopup->setData(userName, this->hasSourceChannel()
? this->sourceChannel_
: this->underlyingChannel_);
@@ -1997,7 +1998,8 @@ void ChannelView::handleLinkClick(QMouseEvent *event, const Link &link,
break;
case Link::OpenAccountsPage: {
SettingsDialog::showDialog(SettingsDialogPreference::Accounts);
SettingsDialog::showDialog(this,
SettingsDialogPreference::Accounts);
}
break;