Hello,

In Mac OS X i'm having a problem with the QMenuBar.

I have a QAction that shows a QDialog, when the Dialog is closed the QMenu still is highlighted though.

If i remove the QDialog it works as suspected.

Is there some magic that must be done when closing a QDialog?

In short, this is what the slot looks lite that the QAction fires. If i return out in the sanity-check, it's ok. The menu returns to correct state.
Qt Code:
  1. void WaveView::changeVelocity()
  2. {
  3. if (!inputStrip)
  4. return;
  5. ChangeVelocity *cv = new ChangeVelocity(&currentEvents, inputStrip);
  6. connect(cv, SIGNAL(changed()), this, SLOT(update()));
  7. bool res= cv->exec();
  8. delete cv;
  9. if (res ==false) {
  10. /* Don't do stuff */
  11. } else {
  12. /* Do Stuff*/
  13. }
  14. }
  15. }
To copy to clipboard, switch view to plain text mode 
If i change the code to not show the dialog, like below, the problem dosen't appear any longer..
Qt Code:
  1. void WaveView::changeVelocity()
  2. {
  3. if (!inputStrip)
  4. return;
  5. bool res = false;
  6. if (res ==false) {
  7. /* Don't do stuff */
  8. } else {
  9. /* Do Stuff*/
  10. }
  11. }
  12. }
To copy to clipboard, switch view to plain text mode 

Both the cancel and OK buttons are connected to reject and accept, and the Dialog is working as expected...

I'm using Qt 4.2.3 but have checked Recent Changes and found nothing about a fix for a bug like this. This leads me to believe that i'm doing something wrong instead of it being a bug in QT

Thanks in advance!