mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-23 19:57:21 +01:00
bugfix 2560
This commit is contained in:
parent
05b16e9f71
commit
097501b681
@ -224,9 +224,26 @@ void FWWindow::showSub(ProjectPanel *projectW)
|
||||
sub->setWidget(projectW);
|
||||
sub->setAttribute(Qt::WA_DeleteOnClose);
|
||||
m_space->addSubWindow(sub);
|
||||
sub->showMaximized();
|
||||
QIcon p(":Icons/Firewall/icon-tree");
|
||||
sub->setWindowIcon(p);
|
||||
sub->setWindowIcon(p);
|
||||
if (projectW->getRCS()!=NULL)
|
||||
{
|
||||
QString FileName = projectW->getRCS()->getFileName();
|
||||
if (st->getInt("Window/"+FileName+"/maximized")==0)
|
||||
{
|
||||
sub->showMaximized();
|
||||
}
|
||||
else
|
||||
{
|
||||
sub->show();
|
||||
projectW->loadState();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
sub->showMaximized();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ProjectPanel* FWWindow::activeProject()
|
||||
|
||||
@ -3285,6 +3285,14 @@ void ProjectPanel::saveState ()
|
||||
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);
|
||||
}
|
||||
else
|
||||
{
|
||||
st->setInt("Window/"+FileName+"/maximized",1);
|
||||
}
|
||||
}
|
||||
|
||||
oe->hide();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user