Skip to content

Commit

Permalink
Fix crash on Mac after launching notepadqq#702
Browse files Browse the repository at this point in the history
  • Loading branch information
戎飞 committed Jun 8, 2018
1 parent 2434e38 commit a75ca02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/EditorNS/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ namespace EditorNS

bool Editor::isClean()
{
return asyncSendMessageWithResult("C_FUN_IS_CLEAN", QVariant(0)).get().toBool();
QVariant data(0);
return asyncSendMessageWithResult("C_FUN_IS_CLEAN",data).get().toBool();
}

QPromise<void> Editor::markClean()
Expand Down

0 comments on commit a75ca02

Please sign in to comment.