Skip to content

Commit

Permalink
m: Tpl; center message box on settings dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
ElTh0r0 committed Nov 12, 2024
1 parent e2e169e commit d60494a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
14 changes: 8 additions & 6 deletions application/parser/provisionaltplparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -939,12 +939,14 @@ auto ProvisionalTplParser::parseImprovable(const QStringList &sListArgs)
}

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

// ----------------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions application/settingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ void SettingsDialog::accept() {
m_pSettings->m_sInyokaConstArea = sValue;
}

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

if (!communityFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
QMessageBox::critical(nullptr, tr("Error"),
QMessageBox::critical(this, tr("Error"),
tr("Could not open/find community file!"));
qCritical() << "Could not open/find community file:"
<< communityFile.fileName();
Expand All @@ -303,7 +303,7 @@ void SettingsDialog::changedCommunity(int nIndex) {
if (sUrl.isEmpty() || sLoginUrl.isEmpty() || sConstArea.isEmpty() ||
sCookieDomain.isEmpty()) {
qWarning() << "Community.conf not complete!";
QMessageBox::warning(nullptr, tr("Warning"),
QMessageBox::warning(this, tr("Warning"),
tr("Community.conf not complete!"));
}
}
Expand Down

0 comments on commit d60494a

Please sign in to comment.