Fixed a bug when saving the position of auxiliary windows

This commit is contained in:
Olivier Teulière 2012-05-05 19:45:04 +02:00
parent 0095302b88
commit 6d4df09b31

View file

@ -88,6 +88,10 @@ void AuxWindow::closeEvent(QCloseEvent *event)
void AuxWindow::writeSettings() const
{
// For some reason, this method is called when the window is destroyed,
// even when it was already closed. So avoid saving an invalid position.
if (!isVisible())
return;
QSettings settings;
settings.beginGroup(m_windowName);
settings.setValue("size", size());