Qt: buildfix

This commit is contained in:
Brad Parker 2018-05-07 00:07:12 -04:00
parent 2a784ae1bc
commit faf52937c5

View File

@ -852,12 +852,12 @@ void MainWindow::setCustomThemeString(QString qss)
bool MainWindow::showMessageBox(QString msg, MessageBoxType msgType, Qt::WindowModality modality)
{
QPointer<QScopedPointer<QMessageBox> > msgBoxPtr;
QPointer<QMessageBox> msgBoxPtr;
QMessageBox *msgBox = NULL;
QCheckBox *checkBox = NULL;
msgBoxPtr.data()->reset(new QMessageBox(this));
msgBox = msgBoxPtr.data()->data();
msgBoxPtr = new QMessageBox(this);
msgBox = msgBoxPtr.data();
checkBox = new QCheckBox(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_DONT_SHOW_AGAIN), msgBox);
msgBox->setWindowModality(modality);