Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
4a8bdaf8
Commit
4a8bdaf8
authored
Nov 22, 2010
by
Leandro Melo
Browse files
Snippets: Do not update content on window deactivation
parent
44ffd76e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/snippets/snippeteditor.cpp
View file @
4a8bdaf8
...
...
@@ -34,6 +34,7 @@
#include <texteditor/normalindenter.h>
#include <QtGui/QTextDocument>
#include <QtGui/QFocusEvent>
using
namespace
TextEditor
;
...
...
@@ -68,8 +69,7 @@ void SnippetEditor::setSyntaxHighlighter(TextEditor::SyntaxHighlighter *highligh
void
SnippetEditor
::
focusOutEvent
(
QFocusEvent
*
event
)
{
Q_UNUSED
(
event
);
if
(
document
()
->
isModified
())
if
(
event
->
reason
()
!=
Qt
::
ActiveWindowFocusReason
&&
document
()
->
isModified
())
emit
snippetContentChanged
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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