mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-24 04:07:55 +01:00
bugfix 2560
This commit is contained in:
parent
a9d01cd905
commit
58e638fd18
@ -229,7 +229,7 @@ void FWWindow::showSub(ProjectPanel *projectW)
|
||||
if (projectW->getRCS()!=NULL)
|
||||
{
|
||||
QString FileName = projectW->getRCS()->getFileName();
|
||||
if (st->getInt("Window/"+FileName+"/maximized")==0)
|
||||
if (st->getInt("Window/maximized")==0)
|
||||
{
|
||||
sub->showMaximized();
|
||||
}
|
||||
|
||||
@ -3281,17 +3281,20 @@ void ProjectPanel::saveState ()
|
||||
if (rcs!=NULL)
|
||||
{
|
||||
QString FileName = rcs->getFileName();
|
||||
st->setInt("Window/"+FileName+"/x",mdiWindow->x());
|
||||
st->setInt("Window/"+FileName+"/y",mdiWindow->y());
|
||||
st->setInt("Window/"+FileName+"/width",mdiWindow->width ());
|
||||
st->setInt("Window/"+FileName+"/height",mdiWindow->height ());
|
||||
if (!isMaximized ())
|
||||
{
|
||||
st->setInt("Window/"+FileName+"/x",mdiWindow->x());
|
||||
st->setInt("Window/"+FileName+"/y",mdiWindow->y());
|
||||
st->setInt("Window/"+FileName+"/width",mdiWindow->width ());
|
||||
st->setInt("Window/"+FileName+"/height",mdiWindow->height ());
|
||||
}
|
||||
if (isMaximized ())
|
||||
{
|
||||
st->setInt("Window/"+FileName+"/maximized",0);
|
||||
st->setInt("Window/maximized",0);
|
||||
}
|
||||
else
|
||||
{
|
||||
st->setInt("Window/"+FileName+"/maximized",1);
|
||||
st->setInt("Window/maximized",1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user