Skip to content

Commit

Permalink
add user controlled but unsupported drop support back to CodeView
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhendricks committed Aug 22, 2023
1 parent 546ad4a commit 08dd45c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Sigil-2.0.1
Bug Fixes
- fix crash when right click on Misc folder in BookBrowser

- Allow user to revert CodeView drag_and_drop change via environment variable: SIGIL_ALLOW_CODEVIEW_DROP=1
Note: Using DragnDrop in CodeView is still NOT officially supported.
- add inadvertantly missed updated serbian translation (ts) file

Sigil-2.0.0
Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion src/ViewEditors/CodeViewEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ CodeViewEditor::CodeViewEditor(HighlighterType high_type, bool check_spelling, Q
m_ReplacingInMarkedText(false),
m_regen_taglist(true)
{
setAcceptDrops(false);
if (!qEnvironmentVariableIsSet("SIGIL_ALLOW_CODEVIEW_DROP")) setAcceptDrops(false);
if (high_type == CodeViewEditor::Highlight_XHTML) {
// m_Highlighter = new XHTMLHighlighter(check_spelling, this);
m_Highlighter = new XHTMLHighlighter2(check_spelling, this);
Expand Down

0 comments on commit 08dd45c

Please sign in to comment.