Commit 80321dee authored by Kurt Hindenburg's avatar Kurt Hindenburg

Change obsolete usleep with QTimer::usleep

Differential Revision: https://phabricator.kde.org/D5580
parent 7a41b73b
......@@ -719,7 +719,8 @@ void Session::refresh()
const QSize existingSize = _shellProcess->windowSize();
_shellProcess->setWindowSize(existingSize.width() + 1, existingSize.height());
usleep(500); // introduce small delay to avoid changing size too quickly
// introduce small delay to avoid changing size too quickly
QThread::usleep(500);
_shellProcess->setWindowSize(existingSize.width(), existingSize.height());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment