Fix crash when detaching the view. Calling delete on a QWidget is not safe when lots of signals involving it are flying around.

svn path=/branches/work/konsole-split-view/; revision=658414
wilder-portage
Robert Knight 19 years ago
parent 43b2927eb6
commit 18dfdfbeee
  1. 4
      konsole/SessionController.cpp
  2. 3
      konsole/ViewManager.cpp

@ -560,7 +560,9 @@ void SessionController::searchTextChanged(const QString& text)
if ( text.isEmpty() )
_view->screenWindow()->clearSelection();
// update search. this is called even when the text is
// empty to clear the view's filters
beginSearch(text , SearchHistoryTask::Forwards);
}
void SessionController::beginSearch(const QString& text , int direction)

@ -199,8 +199,7 @@ void ViewManager::detachActiveView()
// remove the view from this window
container->removeView(activeView);
delete activeView;
activeView->deleteLater();
// if the container from which the view was removed is now empty then it can be deleted,
// unless it is the only container in the window, in which case it is left empty

Loading…
Cancel
Save