UI: Don't update hidden window's title.

This commit is contained in:
Nodir Temirkhodjaev 2019-02-07 21:04:21 +05:00
parent 1a8cdde0e6
commit 129c6c372c

View File

@ -237,6 +237,9 @@ void GraphWindow::addData(QCPBars *graph, qint64 rangeLower,
void GraphWindow::updateWindowTitleSpeed() void GraphWindow::updateWindowTitleSpeed()
{ {
if (windowFlags() & Qt::FramelessWindowHint)
return;
const auto inBytes = m_graphIn->data()->isEmpty() const auto inBytes = m_graphIn->data()->isEmpty()
? 0 : (m_graphIn->data()->constEnd() - 1)->mainValue(); ? 0 : (m_graphIn->data()->constEnd() - 1)->mainValue();
const auto outBytes = m_graphOut->data()->isEmpty() const auto outBytes = m_graphOut->data()->isEmpty()