mirror of
https://github.com/KDE/konsole.git
synced 2026-05-18 19:47:16 -04:00
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:
@@ -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.";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user