From 13959a5406112665a6aa7c9c14f3079234a2e59c Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 1 Feb 2015 20:13:40 +0100 Subject: [PATCH] shellwindow: don't update screen if not necessary Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/701cb24f458f9e2e1af51ca1df8e2cbc4e6d190b Author: Stefan Seyfried Date: 2015-02-01 (Sun, 01 Feb 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/widget/shellwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/shellwindow.cpp b/src/gui/widget/shellwindow.cpp index 4d555d6ff..07302b0ed 100644 --- a/src/gui/widget/shellwindow.cpp +++ b/src/gui/widget/shellwindow.cpp @@ -160,7 +160,7 @@ CShellWindow::CShellWindow(const std::string &command, const int _mode, int *res gettimeofday(&tv,NULL); now = (uint64_t) tv.tv_usec + (uint64_t)((uint64_t) tv.tv_sec * (uint64_t) 1000000); - if (r < 1 || dirty || lastPaint + 250000 < now) { + if (!ok || (r < 1 && dirty && lastPaint + 250000 < now)) { textBox->setText(&txt); textBox->paint(); lastPaint = now;