mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Add a warning about renaming a library causing calibre:// URLs pointing to it to stop working
This commit is contained in:
parent
1dda886dc4
commit
c0a5cb4270
@ -560,7 +560,8 @@ class ChooseLibraryAction(InterfaceAction):
|
||||
newname, ok = QInputDialog.getText(self.gui, _('Rename') + ' ' + old_name,
|
||||
'<p>'+_(
|
||||
'Choose a new name for the library <b>%s</b>. ')%name + '<p>'+_(
|
||||
'Note that the actual library folder will be renamed.'),
|
||||
'Note that the actual library folder will be renamed.') + '<p>' + _(
|
||||
'WARNING: This means that any calibre:// URLs that point to things in this library will stop working.'),
|
||||
text=old_name)
|
||||
newname = sanitize_file_name(str(newname))
|
||||
if not ok or not newname or newname == old_name:
|
||||
|
Loading…
x
Reference in New Issue
Block a user