i have two threads: one - gui & other - backgroud.
in gui thread i have pointer to other thread.
when closing app gui destructor is called, i want to quit & destroy other thread there:
Qt Code:
  1. delete pOther;
To copy to clipboard, switch view to plain text mode 

other's destructor look like this:

Qt Code:
  1. other::~other()
  2. {
  3. if ( isRunning() )
  4. quit();
  5. wait();
  6. }
To copy to clipboard, switch view to plain text mode 

but qt-4.6.1 prints warning QWaitCondition: Destroyed while threads are still running.
there is now warnings neither in qt-4.6.0 nor in qt-4.3.1 on windows.
whats wrong? is it my mistake? how to get rid of it? thanks