author | paule <paule> | 2007-01-13 07:03:58 (UTC) |
---|---|---|
committer | paule <paule> | 2007-01-13 07:03:58 (UTC) |
commit | 75c65c1dc728929f0430b8faf956195657b73311 (patch) (unidiff) | |
tree | 52fce1ccec59285e4e887d908b0da3a0431c13d9 | |
parent | e9768d9a498037195b8ca3bb5155db7419f30e1a (diff) | |
download | opie-75c65c1dc728929f0430b8faf956195657b73311.zip opie-75c65c1dc728929f0430b8faf956195657b73311.tar.gz opie-75c65c1dc728929f0430b8faf956195657b73311.tar.bz2 |
Call qApp->processEvents() before deleting dialog objects to avoid crashes (Qt bug?)
-rw-r--r-- | noncore/apps/tinykate/libkate/view/kateview.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/apps/tinykate/libkate/view/kateview.cpp b/noncore/apps/tinykate/libkate/view/kateview.cpp index 423634b..c5673a5 100644 --- a/noncore/apps/tinykate/libkate/view/kateview.cpp +++ b/noncore/apps/tinykate/libkate/view/kateview.cpp | |||
@@ -1892,8 +1892,9 @@ void KateView::find() { | |||
1892 | searchFlags = searchDialog->getFlags() | (searchFlags & KateView::sfPrompt); | 1892 | searchFlags = searchDialog->getFlags() | (searchFlags & KateView::sfPrompt); |
1893 | initSearch(s, searchFlags); | 1893 | initSearch(s, searchFlags); |
1894 | findAgain(s); | 1894 | findAgain(s); |
1895 | } | 1895 | } |
1896 | qApp->processEvents(); | ||
1896 | delete searchDialog; | 1897 | delete searchDialog; |
1897 | } | 1898 | } |
1898 | 1899 | ||
1899 | void KateView::replace() { | 1900 | void KateView::replace() { |
@@ -1931,8 +1932,9 @@ void KateView::replace() { | |||
1931 | searchFlags = searchDialog->getFlags(); | 1932 | searchFlags = searchDialog->getFlags(); |
1932 | initSearch(s, searchFlags); | 1933 | initSearch(s, searchFlags); |
1933 | replaceAgain(); | 1934 | replaceAgain(); |
1934 | } | 1935 | } |
1936 | qApp->processEvents(); | ||
1935 | delete searchDialog; | 1937 | delete searchDialog; |
1936 | } | 1938 | } |
1937 | 1939 | ||
1938 | void KateView::gotoLine() { | 1940 | void KateView::gotoLine() { |
@@ -1951,8 +1953,9 @@ void KateView::gotoLine() { | |||
1951 | myViewInternal->center(); | 1953 | myViewInternal->center(); |
1952 | myViewInternal->updateView(KateView::ufUpdateOnScroll); | 1954 | myViewInternal->updateView(KateView::ufUpdateOnScroll); |
1953 | myDoc->updateViews(this); //uptade all other views except this one | 1955 | myDoc->updateViews(this); //uptade all other views except this one |
1954 | } | 1956 | } |
1957 | qApp->processEvents(); | ||
1955 | delete dlg; | 1958 | delete dlg; |
1956 | } | 1959 | } |
1957 | 1960 | ||
1958 | 1961 | ||