Removed notification but use tray icon #4745

This commit is contained in:
Xinyu Hou 2015-06-30 01:42:08 +01:00
parent 3aebb87b37
commit 6d5f997a1e
1 changed files with 0 additions and 11 deletions

View File

@ -477,17 +477,6 @@ void MainWindow::checkTransmission(const QString& line)
line.contains("Interrupted")) { line.contains("Interrupted")) {
setSynergyState(synergyConnected); setSynergyState(synergyConnected);
} }
// NOTIFY: Title: Detail
int p1 = line.indexOf(':');
if (p1 > 0) {
int p2 = line.indexOf(':', p1 + 1);
if (p2 > 0) {
QString title = line.mid(p1 + 2, p2 - p1 - 2);
QString detail = line.mid(p2 + 2);
m_pTrayIcon->showMessage(title, detail);
}
}
} }
} }
} }