From 1bc0c41f029b1425252b81991a1ab2eeb7cd2bb3 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Tue, 12 Jan 2016 13:05:11 +0100 Subject: [PATCH] Restore sizes. --- src/modules/partition/gui/PartitionSplitterWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/partition/gui/PartitionSplitterWidget.cpp b/src/modules/partition/gui/PartitionSplitterWidget.cpp index fbc7a3042..fb249a824 100644 --- a/src/modules/partition/gui/PartitionSplitterWidget.cpp +++ b/src/modules/partition/gui/PartitionSplitterWidget.cpp @@ -119,6 +119,7 @@ PartitionSplitterWidget::setSplitPartition( const QString& path, if ( m_items[ i ].itemPath == m_itemToResize->itemPath && i + 1 < m_items.count() ) { + m_items[ i ].size = m_items[ i ].size + m_itemToResizeNext->size; m_items.removeAt( i + 1 ); m_itemToResizeNext = nullptr; break; @@ -130,6 +131,8 @@ PartitionSplitterWidget::setSplitPartition( const QString& path, if ( m_items[ i ].children[ j ].itemPath == m_itemToResize->itemPath && j + 1 < m_items[ i ].children.count() ) { + m_items[ i ].children[ j ].size = + m_items[ i ].children[ j ].size + m_itemToResizeNext->size; m_items[ i ].children.removeAt( j + 1 ); m_itemToResizeNext = nullptr; break;