On Fri, Jun 16, 2006 at 10:38:40AM +0200, Peter Kümmel wrote:
> Index: qt3/lyx_gui.C
> ===================================================================
> --- qt3/lyx_gui.C     (revision 14122)
> +++ qt3/lyx_gui.C     (working copy)
> @@ -235,9 +235,12 @@
>       view.init();
>               
>       if (posx != -1 && posy != -1) {
> +             qApp->setMainWidget(&view);
>               view.setGeometry(posx, posy, width, height);
>               if (maximize)
>                       view.setWindowState(Qt::WindowMaximized);
> +     } else {
> +             qApp->setMainWidget(&view);
>       }

So in either branch the first line is 

                qApp->setMainWidget(&view);

?

Is this different from

                qApp->setMainWidget(&view);
        if (posx != -1 && posy != -1) {
                view.setGeometry(posx, posy, width, height);
                if (maximize)
                        view.setWindowState(Qt::WindowMaximized);
          }

Andre'

Reply via email to