Use Qt's dialog where applicable (#1843)
This commit is contained in:
@@ -57,7 +57,7 @@ namespace {
|
||||
const QString &title, const QString &description)
|
||||
{
|
||||
auto window =
|
||||
new BaseWindow(BaseWindow::Flags::EnableCustomFrame, parent);
|
||||
new BasePopup(BaseWindow::Flags::EnableCustomFrame, parent);
|
||||
window->setWindowTitle("Chatterino - " + title);
|
||||
window->setAttribute(Qt::WA_DeleteOnClose);
|
||||
auto layout = new QVBoxLayout();
|
||||
|
||||
@@ -240,8 +240,8 @@ void SplitHeader::initializeLayout()
|
||||
if (getSettings()->moderationActions.empty())
|
||||
{
|
||||
getApp()->windows->showSettingsDialog(
|
||||
SettingsDialogPreference::
|
||||
ModerationActions);
|
||||
this, SettingsDialogPreference::
|
||||
ModerationActions);
|
||||
this->split_->setModerationMode(true);
|
||||
}
|
||||
else
|
||||
@@ -258,6 +258,7 @@ void SplitHeader::initializeLayout()
|
||||
case Qt::RightButton:
|
||||
case Qt::MiddleButton:
|
||||
getApp()->windows->showSettingsDialog(
|
||||
this,
|
||||
SettingsDialogPreference::ModerationActions);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user