1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-24 04:07:55 +01:00

bugfix 2560

This commit is contained in:
2008-04-30 15:54:24 +00:00
parent a9d01cd905
commit 58e638fd18
2 changed files with 10 additions and 7 deletions

View File

@ -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();
}

View File

@ -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);
}
}