Made code more readable #4745
This commit is contained in:
parent
3d55516fdf
commit
ce2c797f69
|
@ -481,7 +481,9 @@ void MainWindow::checkTransmission(const QString& line)
|
||||||
if (p1 > 0) {
|
if (p1 > 0) {
|
||||||
int p2 = line.indexOf(':', p1 + 1);
|
int p2 = line.indexOf(':', p1 + 1);
|
||||||
if (p2 > 0) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue