Changeset View
Changeset View
Standalone View
Standalone View
src/msgctxtview.cpp
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Line(s) | 171 | if (Settings::self()->pologyEnabled() && m_pologyProcessInProgress == 0 && QFile::exists(m_catalog->url())) { | |||
---|---|---|---|---|---|
174 | m_pologyProcess = new KProcess; | 174 | m_pologyProcess = new KProcess; | ||
175 | m_pologyProcess->setShellCommand(command); | 175 | m_pologyProcess->setShellCommand(command); | ||
176 | m_pologyProcess->setOutputChannelMode(KProcess::SeparateChannels); | 176 | m_pologyProcess->setOutputChannelMode(KProcess::SeparateChannels); | ||
177 | m_pologyStartedReceivingOutput = false; | 177 | m_pologyStartedReceivingOutput = false; | ||
178 | connect(m_pologyProcess, &KProcess::readyReadStandardOutput, | 178 | connect(m_pologyProcess, &KProcess::readyReadStandardOutput, | ||
179 | this, &MsgCtxtView::pologyReceivedStandardOutput); | 179 | this, &MsgCtxtView::pologyReceivedStandardOutput); | ||
180 | connect(m_pologyProcess, &KProcess::readyReadStandardError, | 180 | connect(m_pologyProcess, &KProcess::readyReadStandardError, | ||
181 | this, &MsgCtxtView::pologyReceivedStandardError); | 181 | this, &MsgCtxtView::pologyReceivedStandardError); | ||
182 | connect(m_pologyProcess, QOverload<int>::of(&KProcess::finished), | 182 | connect(m_pologyProcess, QOverload<int, QProcess::ExitStatus>::of(&KProcess::finished), | ||
183 | this, &MsgCtxtView::pologyHasFinished); | 183 | this, &MsgCtxtView::pologyHasFinished); | ||
184 | m_pologyData = QStringLiteral("[pology] "); | 184 | m_pologyData = QStringLiteral("[pology] "); | ||
185 | m_pologyProcessInProgress = m_entry.entry + 1; | 185 | m_pologyProcessInProgress = m_entry.entry + 1; | ||
186 | m_pologyProcess->start(); | 186 | m_pologyProcess->start(); | ||
187 | } else if (Settings::self()->pologyEnabled() && m_pologyProcessInProgress > 0) { | 187 | } else if (Settings::self()->pologyEnabled() && m_pologyProcessInProgress > 0) { | ||
188 | QTimer::singleShot(1000, this, &MsgCtxtView::pology); | 188 | QTimer::singleShot(1000, this, &MsgCtxtView::pology); | ||
189 | } | 189 | } | ||
190 | } | 190 | } | ||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |