~ubuntu-branches/ubuntu/trusty/minitube/trusty

« back to all changes in this revision

Viewing changes to debian/patches/proper-tempfiles

  • Committer: Package Import Robot
  • Author(s): Jakob Haufe
  • Date: 2012-09-29 02:43:53 UTC
  • mfrom: (2.1.10)
  • Revision ID: package-import@ubuntu.com-20120929024353-cvsvqeewq4p93pb4
Tags: 1.9-1
* New upstream version (Closes: #673696).
* Refresh disable-update-check.
* Refresh proper-tempfiles.
* Use hardening-wrapper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
Bug-Debian: http://bugs.debian.org/644935
7
7
 
8
8
diff --git a/src/temporary.cpp b/src/temporary.cpp
9
 
index a979cbd..bebcd1f 100644
 
9
index 362cbd8..bebcd1f 100644
10
10
--- a/src/temporary.cpp
11
11
+++ b/src/temporary.cpp
12
12
@@ -1,7 +1,7 @@
18
18
 #ifdef Q_WS_X11
19
19
 static QString userName;
20
20
 #endif
21
 
@@ -10,41 +10,21 @@ Temporary::Temporary() { }
 
21
@@ -10,43 +10,21 @@ Temporary::Temporary() { }
22
22
 
23
23
 QString Temporary::filename() {
24
24
 
38
38
-        tempFile += "-" + userName;
39
39
-#endif
40
40
-
 
41
-    // tempFile += ".mp4";
 
42
-
41
43
-    if (QFile::exists(tempFile) && !QFile::remove(tempFile)) {
42
44
-        qDebug() << "Cannot remove temp file" << tempFile;
43
45
+    if (tempfiles.size() > 1) {