Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Deamon/dbus/zcupsmonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ bool CupsMonitor::insertJobMessage(int id, int state, const QString &message)
{
QString str;
int times = 0;
bool hasRuningJobs = false;
bool hasRunningJobs = false;

{
QMutexLocker locker(&m_mutex);
Expand All @@ -140,13 +140,13 @@ bool CupsMonitor::insertJobMessage(int id, int state, const QString &message)
int iState = str.left(1).toInt();

if (!isCompletedState(iState)) {
hasRuningJobs = true;
hasRunningJobs = true;
break;
}
}
}
}
emit signalShowTrayIcon(hasRuningJobs);
emit signalShowTrayIcon(hasRunningJobs);

//只有处理中的状态才通过事件触发的次数过滤事件
if (IPP_JSTATE_PROCESSING != state) {
Expand Down