mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-28 09:58:15 +01:00
Fixed a bug when saving the position of auxiliary windows
This commit is contained in:
parent
0095302b88
commit
6d4df09b31
1 changed files with 4 additions and 0 deletions
|
@ -88,6 +88,10 @@ void AuxWindow::closeEvent(QCloseEvent *event)
|
||||||
|
|
||||||
void AuxWindow::writeSettings() const
|
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;
|
QSettings settings;
|
||||||
settings.beginGroup(m_windowName);
|
settings.beginGroup(m_windowName);
|
||||||
settings.setValue("size", size());
|
settings.setValue("size", size());
|
||||||
|
|
Loading…
Reference in a new issue