using QTemporaryFile::createLocalFile; closes #69

master
Marc Wäckerlin 14 years ago
parent a5c84bbbb6
commit 9e6e8b49b0
  1. 6
      swisssurfer/src/browser.hxx
  2. 6
      swisssurfer/src/swisssurfer_de.ts
  3. 6
      swisssurfer/src/swisssurfer_en.ts
  4. 6
      swisssurfer/src/swisssurfer_fr.ts
  5. 6
      swisssurfer/src/swisssurfer_it.ts

@ -1061,8 +1061,10 @@ class Browser: public QMainWindow, protected Ui::Browser {
if (!type.isEmpty()) { if (!type.isEmpty()) {
filename.replace(QRegExp("^(.*)\\."+type.at(0)+"$"), filename.replace(QRegExp("^(.*)\\."+type.at(0)+"$"),
"\\1"); // remove extension "\\1"); // remove extension
QTemporaryFile *file = QTemporaryFile *file(QTemporaryFile::createLocalFile
new QTemporaryFile(QDir::tempPath()+QDir::separator() (QDir::tempPath()+QDir::separator()
+filename+"."+type.at(0)));
if (!file) file = new QTemporaryFile(QDir::tempPath()+QDir::separator()
+filename+"_XXXXXX." +filename+"_XXXXXX."
+type.at(0), this); +type.at(0), this);
file->open(); file->open();

@ -351,17 +351,17 @@ Compiled: qt-%5</oldsource>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="browser.hxx" line="1083"/> <location filename="browser.hxx" line="1085"/>
<source>Save File As ...</source> <source>Save File As ...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="browser.hxx" line="1146"/> <location filename="browser.hxx" line="1148"/>
<source>authentication required</source> <source>authentication required</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="browser.hxx" line="1158"/> <location filename="browser.hxx" line="1160"/>
<source>ssl error</source> <source>ssl error</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

@ -341,17 +341,17 @@ Compiled: qt-%5</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="browser.hxx" line="1083"/> <location filename="browser.hxx" line="1085"/>
<source>Save File As ...</source> <source>Save File As ...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="browser.hxx" line="1146"/> <location filename="browser.hxx" line="1148"/>
<source>authentication required</source> <source>authentication required</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="browser.hxx" line="1158"/> <location filename="browser.hxx" line="1160"/>
<source>ssl error</source> <source>ssl error</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

@ -351,17 +351,17 @@ Compiled: qt-%5</oldsource>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="browser.hxx" line="1083"/> <location filename="browser.hxx" line="1085"/>
<source>Save File As ...</source> <source>Save File As ...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="browser.hxx" line="1146"/> <location filename="browser.hxx" line="1148"/>
<source>authentication required</source> <source>authentication required</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="browser.hxx" line="1158"/> <location filename="browser.hxx" line="1160"/>
<source>ssl error</source> <source>ssl error</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

@ -351,17 +351,17 @@ Compiled: qt-%5</oldsource>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="browser.hxx" line="1083"/> <location filename="browser.hxx" line="1085"/>
<source>Save File As ...</source> <source>Save File As ...</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="browser.hxx" line="1146"/> <location filename="browser.hxx" line="1148"/>
<source>authentication required</source> <source>authentication required</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="browser.hxx" line="1158"/> <location filename="browser.hxx" line="1160"/>
<source>ssl error</source> <source>ssl error</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

Loading…
Cancel
Save