Commit 92ab48d0 authored by Dan Pascu's avatar Dan Pascu

The file transfer download directory cannot be undefined

parent c83ec3f9
...@@ -287,7 +287,6 @@ class PreferencesWindow(base_class, ui_class): ...@@ -287,7 +287,6 @@ class PreferencesWindow(base_class, ui_class):
self.traffic_units_button.clicked.connect(self._SH_TrafficUnitsButtonClicked) self.traffic_units_button.clicked.connect(self._SH_TrafficUnitsButtonClicked)
# File transfer # File transfer
self.download_directory_editor.locationCleared.connect(self._SH_DownloadDirectoryEditorLocationCleared)
self.download_directory_browse_button.clicked.connect(self._SH_DownloadDirectoryBrowseButtonClicked) self.download_directory_browse_button.clicked.connect(self._SH_DownloadDirectoryBrowseButtonClicked)
self.file_transfer_alert_button.clicked.connect(self._SH_FileTransferAlertButtonClicked) self.file_transfer_alert_button.clicked.connect(self._SH_FileTransferAlertButtonClicked)
...@@ -1292,11 +1291,6 @@ class PreferencesWindow(base_class, ui_class): ...@@ -1292,11 +1291,6 @@ class PreferencesWindow(base_class, ui_class):
settings.save() settings.save()
# File transfer signal handlers # File transfer signal handlers
def _SH_DownloadDirectoryEditorLocationCleared(self):
settings = SIPSimpleSettings()
settings.file_transfer.directory = None
settings.save()
def _SH_DownloadDirectoryBrowseButtonClicked(self, checked): def _SH_DownloadDirectoryBrowseButtonClicked(self, checked):
# TODO: open the file selection dialog in non-modal mode. Same for the one for TLS CA list and the IconSelector from contacts. -Dan # TODO: open the file selection dialog in non-modal mode. Same for the one for TLS CA list and the IconSelector from contacts. -Dan
settings = SIPSimpleSettings() settings = SIPSimpleSettings()
......
...@@ -2181,7 +2181,7 @@ ...@@ -2181,7 +2181,7 @@
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="1">
<widget class="LocationBar" name="download_directory_editor"> <widget class="QLineEdit" name="download_directory_editor">
<property name="readOnly"> <property name="readOnly">
<bool>true</bool> <bool>true</bool>
</property> </property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment