Skip to content

Commit

Permalink
reverse the polarity of the logic flow
Browse files Browse the repository at this point in the history
  • Loading branch information
squinky86 committed Feb 11, 2020
1 parent 0fcdf67 commit d82de38
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/assetview.cpp
Expand Up @@ -360,11 +360,8 @@ void AssetView::SetTabIndex(int index)
#ifdef USE_TESTS
void AssetView::ProcEvents()
{
int i = 0;
while (_parent->isProcessingEnabled())
while (!_parent->isProcessingEnabled())
{
if (i++ % 60 == 0)
std::cout << "[keepalive] " << i << std::endl;
QThread::sleep(1);
QApplication::processEvents();
}
Expand Down

0 comments on commit d82de38

Please sign in to comment.