Ticket #10237: 0001-Remove-all-menu-items-in-unambiguous-way-on-x86_64.patch

File 0001-Remove-all-menu-items-in-unambiguous-way-on-x86_64.patch, 876 bytes (added by umccullough, 6 years ago)

Updated patch with proper email

  • src/apps/serialconnect/SerialWindow.cpp

    From 560c30ab46981293e10611eea896bec0543438af Mon Sep 17 00:00:00 2001
    From: Urias McCullough <umccullough@gmail.com>
    Date: Fri, 22 Nov 2013 19:45:00 -0800
    Subject: [PATCH] Remove all menu items in unambiguous way on x86_64
    
    ---
     src/apps/serialconnect/SerialWindow.cpp |    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/apps/serialconnect/SerialWindow.cpp b/src/apps/serialconnect/SerialWindow.cpp
    index cbd7b67..06b1f3a 100644
    a b SerialWindow::~SerialWindow()  
    182182void SerialWindow::MenusBeginning()
    183183{
    184184    // remove all items from the menu
    185     while(fConnectionMenu->RemoveItem(0L));
     185    fConnectionMenu->RemoveItems(0, fConnectionMenu->CountItems(), true);
    186186
    187187    // fill it with the (updated) serial port list
    188188    BSerialPort serialPort;