Commit 18dfdfbe authored by Robert Knight's avatar Robert Knight

Fix crash when detaching the view. Calling delete on a QWidget is not safe...

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
parent 43b2927e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment