← Back to team overview

hugin-devs team mailing list archive

[Bug 1261153] Re: Quit doesn't quit

 

This it not a bug, but a "feature".
OnClose gets called the same if you close the window via the red button and if you do Cmd+Q. We would need to detect that difference.
At least on Mac it would make sense to make Cmd+W close the preview WINDOW
and Cmd+Q QUIT Hugin completely regardless of the current window. 


GLPreviewFrame.cpp:1425

// do not close, just hide if we're not forced
if(m_guiLevel==GUI_SIMPLE)
{
    if(!MainFrame::Get()->CloseProject(event.CanVeto()))
    {
       if (event.CanVeto())
       {
           event.Veto();
           return;
       };
    };
    MainFrame::Get()->Close(true);
}
else
{
    if (event.CanVeto())
    {
        event.Veto();
        Hide();
        DEBUG_DEBUG("hiding");
    }
    else
    {
        DEBUG_DEBUG("closing");
        this->Destroy();
    }
};

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Hugin.
https://bugs.launchpad.net/bugs/1261153

Title:
  Quit doesn't quit

Status in Hugin:
  New

Bug description:
  When Hugin is in advanced or expert mode and the Fast Preview window
  is the front window, Quit doesn't stop Hugin but closes the Fast
  Preview window.

  Hugin 2013.0.0
  Mac OS X 10.6.8 and OS X 10.9.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/hugin/+bug/1261153/+subscriptions


References