Skip to content

Commit d60494a

Browse files
committed
m: Tpl; center message box on settings dialog.
1 parent e2e169e commit d60494a

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

application/parser/provisionaltplparser.cpp

+8-6
Original file line numberDiff line numberDiff line change
@@ -939,12 +939,14 @@ auto ProvisionalTplParser::parseImprovable(const QStringList &sListArgs)
939939
}
940940

941941
return ProvisionalTplParser::insertBox(
942-
"box improvable", QString::fromUtf8("Ausbaufähige Anleitung"),
943-
QString::fromUtf8(
944-
"Dieser Anleitung fehlen noch einige Informationen. Wenn Du etwas "
945-
"verbessern kannst, dann editiere den Beitrag, um die Qualität des "
946-
"Wikis noch weiter zu verbessern."),
947-
sRemark);
942+
"box improvable", QString::fromUtf8("Ausbaufähige Anleitung"),
943+
QString::fromUtf8("Dieser Anleitung fehlen noch einige "
944+
"Informationen. Wenn Du etwas "
945+
"verbessern kannst, dann editiere den Beitrag, "
946+
"um die Qualität des "
947+
"Wikis noch weiter zu verbessern."),
948+
sRemark) +
949+
"\n#tag: ausbaufaehig";
948950
}
949951

950952
// ----------------------------------------------------------------------------

application/settingsdialog.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ void SettingsDialog::accept() {
235235
m_pSettings->m_sInyokaConstArea = sValue;
236236
}
237237

238-
QMessageBox::information(nullptr, this->windowTitle(),
238+
QMessageBox::information(this, this->windowTitle(),
239239
tr("The editor has to be restarted for "
240240
"applying the changes."));
241241
}
@@ -281,7 +281,7 @@ void SettingsDialog::changedCommunity(int nIndex) {
281281
"/community.conf");
282282

283283
if (!communityFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
284-
QMessageBox::critical(nullptr, tr("Error"),
284+
QMessageBox::critical(this, tr("Error"),
285285
tr("Could not open/find community file!"));
286286
qCritical() << "Could not open/find community file:"
287287
<< communityFile.fileName();
@@ -303,7 +303,7 @@ void SettingsDialog::changedCommunity(int nIndex) {
303303
if (sUrl.isEmpty() || sLoginUrl.isEmpty() || sConstArea.isEmpty() ||
304304
sCookieDomain.isEmpty()) {
305305
qWarning() << "Community.conf not complete!";
306-
QMessageBox::warning(nullptr, tr("Warning"),
306+
QMessageBox::warning(this, tr("Warning"),
307307
tr("Community.conf not complete!"));
308308
}
309309
}

0 commit comments

Comments
 (0)