mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
Some tweaks to the add url dialog.
This commit is contained in:
parent
aa5da70030
commit
4cd7ade277
1 changed files with 5 additions and 2 deletions
|
@ -389,6 +389,7 @@ class AddTorrentDialog:
|
||||||
|
|
||||||
dialog.set_default_response(gtk.RESPONSE_OK)
|
dialog.set_default_response(gtk.RESPONSE_OK)
|
||||||
dialog.set_transient_for(self.dialog)
|
dialog.set_transient_for(self.dialog)
|
||||||
|
entry.grab_focus()
|
||||||
|
|
||||||
if deluge.common.windows_check():
|
if deluge.common.windows_check():
|
||||||
import win32clipboard as clip
|
import win32clipboard as clip
|
||||||
|
@ -418,6 +419,7 @@ class AddTorrentDialog:
|
||||||
if url != None:
|
if url != None:
|
||||||
gobject.idle_add(self.download_from_url, url)
|
gobject.idle_add(self.download_from_url, url)
|
||||||
|
|
||||||
|
entry.set_text("")
|
||||||
dialog.hide()
|
dialog.hide()
|
||||||
|
|
||||||
def download_from_url(self, url):
|
def download_from_url(self, url):
|
||||||
|
@ -438,6 +440,7 @@ class AddTorrentDialog:
|
||||||
|
|
||||||
model.remove(row)
|
model.remove(row)
|
||||||
del self.files[torrent_id]
|
del self.files[torrent_id]
|
||||||
|
del self.infos[torrent_id]
|
||||||
|
|
||||||
def _on_button_trackers_clicked(self, widget):
|
def _on_button_trackers_clicked(self, widget):
|
||||||
log.debug("_on_button_trackers_clicked")
|
log.debug("_on_button_trackers_clicked")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue