master
Marc Wäckerlin 14 years ago
parent 897ec1d330
commit 0af0baddfd
  1. 4
      swisssurfer/src/browser.hxx
  2. 2
      swisssurfer/src/settings.hxx
  3. 7
      swisssurfer/src/settings.ui
  4. 4
      swisssurfer/src/swisssurfer_de.ts
  5. 4
      swisssurfer/src/swisssurfer_en.ts
  6. 4
      swisssurfer/src/swisssurfer_fr.ts
  7. 4
      swisssurfer/src/swisssurfer_it.ts

@ -115,6 +115,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
~Browser() { ~Browser() {
LOG; LOG;
if (_settings.flag("CloseApps"))
for (DownloadProcesses::iterator it(_downloadProcesses.begin()); for (DownloadProcesses::iterator it(_downloadProcesses.begin());
it!=_downloadProcesses.end(); ++it) { it!=_downloadProcesses.end(); ++it) {
LOG<<"delete:"<<it->second->fileName(); LOG<<"delete:"<<it->second->fileName();
@ -1020,7 +1021,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
if (it!=_settings.mimetypes().end()) { if (it!=_settings.mimetypes().end()) {
QTemporaryFile *file = QTemporaryFile *file =
new QTemporaryFile(QDir::tempPath()+QDir::separator() new QTemporaryFile(QDir::tempPath()+QDir::separator()
+"swisssurferXXXXXX." +"swisssurferXXXXXX"
+it.value().toStringList().at(0), this); +it.value().toStringList().at(0), this);
file->open(); file->open();
file->write(reply->readAll()); file->write(reply->readAll());
@ -1051,6 +1052,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
void processFinished() { void processFinished() {
LOG; LOG;
if (_settings.flag("CloseApps"))
delete _downloadProcesses[qobject_cast<QProcess*>(sender())]; delete _downloadProcesses[qobject_cast<QProcess*>(sender())];
_downloadProcesses.erase(qobject_cast<QProcess*>(sender())); _downloadProcesses.erase(qobject_cast<QProcess*>(sender()));
} }

@ -87,6 +87,8 @@ class Settings: public QDialog, protected Ui::Settings {
// CheckBoxes // CheckBoxes
_checkboxes["SaveWindowState"] = _checkboxes["SaveWindowState"] =
std::make_pair(_saveWindowState, _saveWindowState->isChecked()); std::make_pair(_saveWindowState, _saveWindowState->isChecked());
_checkboxes["CloseApps"] =
std::make_pair(_closeApps, _closeApps->isChecked());
load(!_mimetypes.size()); load(!_mimetypes.size());
on__buttons_rejected(); on__buttons_rejected();

@ -17,7 +17,7 @@
<item> <item>
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="currentIndex"> <property name="currentIndex">
<number>2</number> <number>4</number>
</property> </property>
<widget class="QWidget" name="tab"> <widget class="QWidget" name="tab">
<attribute name="title"> <attribute name="title">
@ -653,11 +653,14 @@ p, li { white-space: pre-wrap; }
</item> </item>
<item> <item>
<widget class="QCheckBox" name="_closeApps"> <widget class="QCheckBox" name="_closeApps">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text"> <property name="text">
<string>close mimetype helper applications on exit</string> <string>close mimetype helper applications on exit</string>
</property> </property>
<property name="checked"> <property name="checked">
<bool>true</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>

@ -331,12 +331,12 @@ Compiled: qt-%5</oldsource>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="browser.hxx" line="1094"/> <location filename="browser.hxx" line="1097"/>
<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="1106"/> <location filename="browser.hxx" line="1109"/>
<source>ssl error</source> <source>ssl error</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

@ -331,12 +331,12 @@ Compiled: qt-%5</oldsource>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="browser.hxx" line="1094"/> <location filename="browser.hxx" line="1097"/>
<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="1106"/> <location filename="browser.hxx" line="1109"/>
<source>ssl error</source> <source>ssl error</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

@ -331,12 +331,12 @@ Compiled: qt-%5</oldsource>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="browser.hxx" line="1094"/> <location filename="browser.hxx" line="1097"/>
<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="1106"/> <location filename="browser.hxx" line="1109"/>
<source>ssl error</source> <source>ssl error</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

@ -331,12 +331,12 @@ Compiled: qt-%5</oldsource>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="browser.hxx" line="1094"/> <location filename="browser.hxx" line="1097"/>
<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="1106"/> <location filename="browser.hxx" line="1109"/>
<source>ssl error</source> <source>ssl error</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

Loading…
Cancel
Save