mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-01 02:48:05 +01:00
Fix.
This commit is contained in:
parent
ebaa277cc2
commit
cc554a69f1
@ -113,7 +113,7 @@ void FormMessageFiltersManager::addNewFilter() {
|
|||||||
}
|
}
|
||||||
catch (const ApplicationException& ex) {
|
catch (const ApplicationException& ex) {
|
||||||
MessageBox::show(this, QMessageBox::Icon::Critical, tr("Error"),
|
MessageBox::show(this, QMessageBox::Icon::Critical, tr("Error"),
|
||||||
tr("Cannot save new filter, error: ''.").arg(ex.message()));
|
tr("Cannot save new filter, error: '%1'.").arg(ex.message()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -293,7 +293,7 @@ void FormMessageFiltersManager::beautifyScript() {
|
|||||||
QProcess proc_clang_format(this);
|
QProcess proc_clang_format(this);
|
||||||
|
|
||||||
proc_clang_format.setInputChannelMode(QProcess::InputChannelMode::ManagedInputChannel);
|
proc_clang_format.setInputChannelMode(QProcess::InputChannelMode::ManagedInputChannel);
|
||||||
proc_clang_format.setArguments({"--assume-filename=script.js", "--style=Chromium"});
|
proc_clang_format.setArguments({ "--assume-filename=script.js", "--style=Chromium" });
|
||||||
|
|
||||||
#if defined (Q_OS_WIN)
|
#if defined (Q_OS_WIN)
|
||||||
proc_clang_format.setProgram(qApp->applicationDirPath() + QDir::separator() +
|
proc_clang_format.setProgram(qApp->applicationDirPath() + QDir::separator() +
|
||||||
|
Loading…
Reference in New Issue
Block a user