Made code more readable #4745

This commit is contained in:
Jerry (Xinyu Hou) 2015-06-01 16:58:21 -07:00
parent 3d55516fdf
commit ce2c797f69
1 changed files with 3 additions and 1 deletions

View File

@ -481,7 +481,9 @@ void MainWindow::checkTransmission(const QString& line)
if (p1 > 0) {
int p2 = line.indexOf(':', p1 + 1);
if (p2 > 0) {
m_pTrayIcon->showMessage(line.mid(p1 + 2, p2 - p1 - 2), line.mid(p2 + 2));
QString title = line.mid(p1 + 2, p2 - p1 - 2);
QString detail = line.mid(p2 + 2);
m_pTrayIcon->showMessage(title, detail);
}
}
}