mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1902978 [[Enhancement] Show current name when renaming an application in the Open with dialog](https://bugs.launchpad.net/calibre/+bug/1902978)
This commit is contained in:
parent
53798ac95f
commit
d883f97ee6
@ -444,7 +444,8 @@ class EditPrograms(Dialog): # {{{
|
|||||||
if ci is None:
|
if ci is None:
|
||||||
return error_dialog(self, _('No selection'), _(
|
return error_dialog(self, _('No selection'), _(
|
||||||
'No application selected'), show=True)
|
'No application selected'), show=True)
|
||||||
name, ok = QInputDialog.getText(self, _('Enter new name'), _('New name for {}').format(ci.data(Qt.DisplayRole)))
|
name = ci.data(Qt.DisplayRole)
|
||||||
|
name, ok = QInputDialog.getText(self, _('Enter new name'), _('New name for {}').format(name), text=name)
|
||||||
if ok and name:
|
if ok and name:
|
||||||
entry = ci.data(ENTRY_ROLE)
|
entry = ci.data(ENTRY_ROLE)
|
||||||
change_name_in_entry(entry, name)
|
change_name_in_entry(entry, name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user