Set usable destop layout default if none is given.
svn path=/trunk/KDE/kdebase/workspace/; revision=671715
This commit is contained in:
parent
5389d4afab
commit
ba8b014c82
1 changed files with 2 additions and 0 deletions
|
@ -1693,6 +1693,8 @@ void Workspace::updateDesktopLayout()
|
|||
? Qt::Horizontal : Qt::Vertical );
|
||||
layoutX = rootInfo->desktopLayoutColumnsRows().width();
|
||||
layoutY = rootInfo->desktopLayoutColumnsRows().height();
|
||||
if( layoutX == 0 && layoutY == 0 ) // not given, set default layout
|
||||
layoutY = 2;
|
||||
}
|
||||
|
||||
void Workspace::calcDesktopLayout(int* xp, int* yp, Qt::Orientation* orientation) const
|
||||
|
|
Loading…
Reference in a new issue