Index: trunk/BNC/src/rinex/reqcanalyze.cpp
===================================================================
--- trunk/BNC/src/rinex/reqcanalyze.cpp	(revision 4345)
+++ trunk/BNC/src/rinex/reqcanalyze.cpp	(revision 4346)
@@ -87,10 +87,11 @@
                                      QVector<t_polarPoint*>* dataMP2) {
 
-  if (((bncApp*) qApp)->mode() == bncApp::interactive) {
-
-    t_polarPlot* plotMP1 = new t_polarPlot(QwtText("MP1"), 0);
+  bncApp* app = dynamic_cast<bncApp*>(qApp);
+  if (app->mode() == bncApp::interactive) {
+
+    t_polarPlot* plotMP1 = new t_polarPlot(QwtText("MP1"), app->mainWindow());
     plotMP1->addCurve(dataMP1);
 
-    t_polarPlot* plotMP2 = new t_polarPlot(QwtText("MP2"), 0);
+    t_polarPlot* plotMP2 = new t_polarPlot(QwtText("MP2"), app->mainWindow());
     plotMP2->addCurve(dataMP2);
     
@@ -101,5 +102,5 @@
     t_graphWin* graphWin = new t_graphWin(0, plots);
 
-    graphWin->show();
+    graphWin->exec();
   }
 }
