From def5f759cb371034d42373d275c2c0b6f299256c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 26 Feb 2004 20:18:33 +0000 Subject: [PATCH] Save() actually always displayed an error requester, even if there was no error. Started working on the block size menu. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6771 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/diskprobe/ProbeView.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/apps/diskprobe/ProbeView.cpp b/src/apps/diskprobe/ProbeView.cpp index ba558a091d..bb7518e09b 100644 --- a/src/apps/diskprobe/ProbeView.cpp +++ b/src/apps/diskprobe/ProbeView.cpp @@ -1127,7 +1127,11 @@ ProbeView::AttachedToWindow() // Block Size subMenu = new BMenu("BlockSize"); - subMenu->AddItem(new BMenuItem("512", NULL)); + subMenu->AddItem(item = new BMenuItem("512", NULL)); + item->SetMarked(true); + subMenu->AddItem(new BMenuItem("1024", NULL)); + subMenu->AddItem(new BMenuItem("2048", NULL)); + subMenu->SetRadioMode(true); menu->AddItem(new BMenuItem(subMenu)); menu->AddSeparatorItem(); @@ -1291,6 +1295,8 @@ status_t ProbeView::Save() { status_t status = fEditor.Save(); + if (status == B_OK) + return B_OK; char buffer[1024]; snprintf(buffer, sizeof(buffer),