Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
9c5fd3db
Commit
9c5fd3db
authored
Oct 18, 2022
by
Waqar Ahmed
Committed by
Christoph Cullmann
Oct 19, 2022
Browse files
Fix crash: Use argument in function, not m_curResults
parent
9f42b0f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/search/SearchPlugin.cpp
View file @
9c5fd3db
...
...
@@ -2024,10 +2024,10 @@ void KatePluginSearchView::detachTabToMainWindow(Results *res)
}
int
i
=
m_tabBar
->
currentIndex
();
m_curResult
s
->
setWindowIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"edit-find"
)));
m_curResult
s
->
setWindowTitle
(
i18n
(
"Search: %1"
,
m_tabBar
->
tabText
(
i
)));
Utils
::
addWidget
(
m_curResult
s
,
m_mainWindow
);
m_curResult
s
=
nullptr
;
re
s
->
setWindowIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"edit-find"
)));
re
s
->
setWindowTitle
(
i18n
(
"Search: %1"
,
m_tabBar
->
tabText
(
i
)));
Utils
::
addWidget
(
re
s
,
m_mainWindow
);
re
s
=
nullptr
;
m_tabBar
->
removeTab
(
i
);
addTab
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment