Allow tab titles to include the window title set by the shell. Fix arithmetic exception when trying to shrink/expand the current view if it is the only view open.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=663712
This commit is contained in:
Robert Knight
2007-05-12 06:04:02 +00:00
parent 07b1e29c0c
commit 53d5b76910
5 changed files with 24 additions and 16 deletions

View File

@@ -62,7 +62,7 @@ void ViewSplitter::adjustContainerSize(ViewContainer* container , int percentage
// qDebug() << "Old container size:" << oldSize << ", new size:" << newSize;
int perContainerDelta = ( (newSize-oldSize) / (count()-1) ) * (-1);
int perContainerDelta = (count() == 1 ) ? 0 : ( (newSize-oldSize) / (count()-1) ) * (-1);
// qDebug() << "Changing sizes of other containers by " << perContainerDelta << "pixels.";