>From 80669e6c4f2a23aa11f2648e5d68461fbf760f76 Mon Sep 17 00:00:00 2001
From: fleissig <fleis...@yandex.ru>
Date: Sat, 16 Nov 2013 14:55:49 +0400
Subject: [PATCH] disappearing empty HtmlEditor

---
 src/noteedit.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/noteedit.cpp b/src/noteedit.cpp
index cd82f1e..c30fb39 100644
--- a/src/noteedit.cpp
+++ b/src/noteedit.cpp
@@ -467,7 +467,7 @@ void HtmlEditor::autoSave(bool toFileToo)
 
 void HtmlEditor::validate()
 {
-    if (Tools::htmlToText(textEdit()->toHtml()).isEmpty())
+    if (textEdit()->toPlainText().isEmpty())
         setEmpty();
     QString convert = textEdit()->toHtml();
     if(note()->allowCrossReferences())
-- 
1.8.3.2

From 80669e6c4f2a23aa11f2648e5d68461fbf760f76 Mon Sep 17 00:00:00 2001
From: fleissig <fleis...@yandex.ru>
Date: Sat, 16 Nov 2013 14:55:49 +0400
Subject: [PATCH] disappearing empty HtmlEditor

---
 src/noteedit.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/noteedit.cpp b/src/noteedit.cpp
index cd82f1e..c30fb39 100644
--- a/src/noteedit.cpp
+++ b/src/noteedit.cpp
@@ -467,7 +467,7 @@ void HtmlEditor::autoSave(bool toFileToo)
 
 void HtmlEditor::validate()
 {
-    if (Tools::htmlToText(textEdit()->toHtml()).isEmpty())
+    if (textEdit()->toPlainText().isEmpty())
         setEmpty();
     QString convert = textEdit()->toHtml();
     if(note()->allowCrossReferences())
-- 
1.8.3.2

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Basket-devel mailing list
Basket-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/basket-devel

Reply via email to