Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
3e750afc
Commit
3e750afc
authored
Mar 17, 2010
by
Friedemann Kleint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DesignMode: Do not open .js-files in Design mode.
parent
b4d72a78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/plugins/qmljseditor/qmljseditor.cpp
src/plugins/qmljseditor/qmljseditor.cpp
+2
-1
No files found.
src/plugins/qmljseditor/qmljseditor.cpp
View file @
3e750afc
...
...
@@ -602,7 +602,8 @@ static bool openInDesignMode()
QString
QmlJSEditorEditable
::
preferredMode
()
const
{
if
(
openInDesignMode
())
if
(
editor
()
->
mimeType
()
==
QLatin1String
(
QmlJSEditor
::
Constants
::
QML_MIMETYPE
)
&&
openInDesignMode
())
return
QLatin1String
(
Core
::
Constants
::
MODE_DESIGN
);
return
QString
();
}
...
...
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