Ticket #11088: 11088.patch

File 11088.patch, 1.6 KB (added by anevilyak, 10 years ago)
  • src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp

    diff --git a/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp b/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp
    index bdf41d7..c10c694 100644
    a b TeamWindow::MessageReceived(BMessage* message)  
    385385                break;
    386386
    387387            _HandleResolveMissingSourceFile(locatedPath);
     388            delete fFilePanel;
     389            fFilePanel = NULL;
    388390            break;
    389391        }
    390392        case MSG_LOCATE_SOURCE_IF_NEEDED:
    TeamWindow::MessageReceived(BMessage* message)  
    395397        case MSG_SOURCE_ENTRY_QUERY_COMPLETE:
    396398        {
    397399            BStringList* entries;
    398             if (message->FindPointer("entries", (void**)&entries) != B_OK)
    399                 break;
    400             ObjectDeleter<BStringList> entryDeleter(entries);
    401             _HandleLocateSourceRequest(entries);
     400            if (message->FindPointer("entries", (void**)&entries) == B_OK) {
     401                ObjectDeleter<BStringList> entryDeleter(entries);
     402                _HandleLocateSourceRequest(entries);
     403            }
    402404            fActiveSourceWorker = -1;
    403405            break;
    404406        }
    TeamWindow::_RetrieveMatchingSourceWorker(void* arg)  
    15681570    window->Unlock();
    15691571
    15701572    status_t error = window->_RetrieveMatchingSourceEntries(path, entries);
    1571     if (error != B_OK)
    1572         return error;
    15731573
    15741574    entries->Sort();
    15751575    BMessenger messenger(window);
    15761576    if (messenger.IsValid() && messenger.LockTarget()) {
    15771577        if (window->fActiveSourceWorker == find_thread(NULL)) {
    15781578            BMessage message(MSG_SOURCE_ENTRY_QUERY_COMPLETE);
     1579            message.AddInt32("error", error);
    15791580            message.AddPointer("entries", entries);
    15801581            if (messenger.SendMessage(&message) == B_OK)
    15811582                stringListDeleter.Detach();