From 53830ab75a01e23d355635e941a2114949ff34a2 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Thu, 11 Apr 2019 18:03:14 +0200 Subject: [PATCH] DriveSetup: disable 'Open with diskprobe' when no partition selected This was part of the original DriveSetup patch but I missed it when splitting it in smaller parts. --- src/apps/drivesetup/MainWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apps/drivesetup/MainWindow.cpp b/src/apps/drivesetup/MainWindow.cpp index ebaf40c886..f1c20bfe0e 100644 --- a/src/apps/drivesetup/MainWindow.cpp +++ b/src/apps/drivesetup/MainWindow.cpp @@ -668,6 +668,8 @@ MainWindow::_UpdateMenus(BDiskDevice* disk, fWipeMenuItem->SetEnabled(false); fEjectMenuItem->SetEnabled(false); fSurfaceTestMenuItem->SetEnabled(false); + fOpenDiskProbeMenuItem->SetEnabled(false); + fOpenDiskProbeContextMenuItem->SetEnabled(false); } else { // fWipeMenuItem->SetEnabled(true); fWipeMenuItem->SetEnabled(false);