summaryrefslogtreecommitdiff
path: root/debian/patches/02_remove_unwanted_debug_code.diff
blob: 6028711414e0162e390ca643e6358c48f318da04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Remove unwanted debug code that created ./out.txt.  Upstream svn r1318.
Index: src/frontend/display/bthtmlreaddisplay.cpp
===================================================================
--- src/frontend/display/bthtmlreaddisplay.cpp	(revision 1317)
+++ src/frontend/display/bthtmlreaddisplay.cpp	(working copy)
@@ -213,19 +213,11 @@
 	return QString();
 }
 
-#include <QTextStream>
 // Puts html text and javascript into QWebView
 void BtHtmlReadDisplay::setText( const QString& newText ) 
 {
 	QString jsText = newText;
 
-     QFile file("out.txt");
-     if (!file.open(QIODevice::WriteOnly | QIODevice::Text))
-         return;
-
-     QTextStream out(&file);
-     out <<  newText << "\n";
-
 	jsText.replace(body,jsBegin+javascript+jsEnd+body);
 
 	// Disconnect any previous connect and connect to slot that loads the javascript object
@@ -379,4 +371,4 @@
     if ( e->type() == QEvent::Leave )
         m_display->m_jsObject->clearPrevAttribute();
     return QWidget::event(e);
-}
\ No newline at end of file
+}