That would be a suitable substitution to turning it off so that it's in-your-face all the time. FYI...it's JTAlert which brings the WSJT-X window to the top (it you enable that option). So all we need is msgBox0.setWindowFlags(Qt::WindowStaysOnTopHint); I tested that and it works.
But there's another problem too. I run on multiple screens. With WSTJ-X on the top screen (I'm running over/under screens) the message box shows up on the bottom screen. Still on top which helps but not where it should be. So I added this: msgBox0.setText(t); msgBox0.setWindowFlags(Qt::WindowStaysOnTopHint); msgBox0.setParent(this); msgBox0.show(); This works. But then I notice there's a msgBox() function in mainwindow.cpp and msgBox0 in the mainwindow.h. Can msgBox0 be refactored to msgBox? I only see it in two places and appears to do the same thing. So this is what I did which works for now. I tried putting the setWindowFlags and setParent in the mainWIndow constructor for msgBox0 but that didn't work for some reason. I used exec() rather than show() and it works now. Index: mainwindow.cpp =================================================================== --- mainwindow.cpp (revision 4309) +++ mainwindow.cpp (working copy) @@ -1446,8 +1448,7 @@ QString t="Please choose another Tx frequency.\n"; t+="WSJT-X will not knowingly transmit\n"; t+="in the WSPR sub-band on 30 m."; - msgBox0.setText(t); - msgBox0.show(); + msgBox.show(t); } } @@ -1694,11 +1695,11 @@ on_stopTxButton_clicked(); } - if (m_config.watchdog () && m_repeatMsg>m_watchdogLimit) + //if (m_config.watchdog () && m_repeatMsg>m_watchdogLimit) + //if (true) { on_stopTxButton_clicked(); - msgBox0.setText("Runaway Tx watchdog"); - msgBox0.show(); + msgBox("Runaway Tx watchdog"); m_repeatMsg=0; } } Mike W9MDB ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ wsjt-devel mailing list wsjt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wsjt-devel