From 2b149fb944da8d975c05d562ab55adaa9dec25bb Mon Sep 17 00:00:00 2001
From: Adriaan de Groot <groot@kde.org>
Date: Fri, 1 Mar 2019 06:56:52 -0500
Subject: [PATCH] [partition] Uncomment updateButtons()

 - This was commented out to combat the crash in device->type()
 - I believe the crash was caused by double-deletion, which was
   fixed in 2092ec3c9a0a37553fd061f423df9d29fe55ab80 by not re-
   parenting an immutable copy of something.
 - Restore the button-fix, since we need that to keep the
   *create* button in-sync with the selected partition.

FIXES #1097
---
 src/modules/partition/gui/PartitionPage.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/partition/gui/PartitionPage.cpp b/src/modules/partition/gui/PartitionPage.cpp
index a2f2eab60c..2743ec53a9 100644
--- a/src/modules/partition/gui/PartitionPage.cpp
+++ b/src/modules/partition/gui/PartitionPage.cpp
@@ -581,7 +581,7 @@ void
 PartitionPage::onPartitionModelReset()
 {
     m_ui->partitionTreeView->expandAll();
-    // updateButtons();
+    updateButtons();
     updateBootLoaderIndex();
 }
 
-- 
GitLab