Commit 0b5c4847 authored by Simon Depiets's avatar Simon Depiets

Do not launch pology on non-existent .po

BUG:401393
parent 61d1d9a0
......@@ -167,7 +167,7 @@ void MsgCtxtView::process()
}
void MsgCtxtView::pology()
{
if (Settings::self()->pologyEnabled() && m_pologyProcessInProgress == 0) {
if (Settings::self()->pologyEnabled() && m_pologyProcessInProgress == 0 && QFile::exists(m_catalog->url())) {
QString command = Settings::self()->pologyCommandEntry();
command = command.replace(QStringLiteral("%u"), QString::number(m_entry.entry + 1)).replace(QStringLiteral("%f"), QStringLiteral("\"") + m_catalog->url() + QStringLiteral("\"")).replace(QStringLiteral("\n"), QStringLiteral(" "));
m_pologyProcess = new KProcess;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment