From 8fd32edb7d4196ea411865652e30652c3bc99a43 Mon Sep 17 00:00:00 2001 From: Jakob Haufe Date: Sat, 29 Sep 2012 01:49:20 +0200 Subject: [PATCH 1/1] Refresh proper-tempfiles --- debian/patches/proper-tempfiles | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/patches/proper-tempfiles b/debian/patches/proper-tempfiles index 44835c2..bc4d125 100644 --- a/debian/patches/proper-tempfiles +++ b/debian/patches/proper-tempfiles @@ -6,7 +6,7 @@ Author: Jakob Haufe Bug-Debian: http://bugs.debian.org/644935 diff --git a/src/temporary.cpp b/src/temporary.cpp -index a979cbd..bebcd1f 100644 +index 362cbd8..bebcd1f 100644 --- a/src/temporary.cpp +++ b/src/temporary.cpp @@ -1,7 +1,7 @@ @@ -18,7 +18,7 @@ index a979cbd..bebcd1f 100644 #ifdef Q_WS_X11 static QString userName; #endif -@@ -10,41 +10,21 @@ Temporary::Temporary() { } +@@ -10,43 +10,21 @@ Temporary::Temporary() { } QString Temporary::filename() { @@ -38,6 +38,8 @@ index a979cbd..bebcd1f 100644 - tempFile += "-" + userName; -#endif - +- // tempFile += ".mp4"; +- - if (QFile::exists(tempFile) && !QFile::remove(tempFile)) { - qDebug() << "Cannot remove temp file" << tempFile; + if (tempfiles.size() > 1) { -- 2.39.2