|
|
|
@ -2617,7 +2617,7 @@ class MountEntryDialog(KDialogBase):
|
|
|
|
|
and not os.path.isfile(self.currentMountEntry.getMountPoint())
|
|
|
|
|
and not self.currentMountEntry.mounttype == 'swap'):
|
|
|
|
|
ask = KMessageBox.warningYesNoCancel(self,
|
|
|
|
|
i18n("""The mountpoint '%1' does not exist. You will not be able to enable it until it is created.\
|
|
|
|
|
i18n("""The mountpoint '%1' does not exist. You will not be able to enable it until it is created.\
|
|
|
|
|
\nShould I create the mountpoint?""").arg(self.currentMountEntry.getMountPoint()),
|
|
|
|
|
i18n("Mountpoint does not exist"))
|
|
|
|
|
if ask==KMessageBox.Cancel:
|
|
|
|
@ -2626,7 +2626,7 @@ class MountEntryDialog(KDialogBase):
|
|
|
|
|
os.mkdir(self.currentMountEntry.getMountPoint())
|
|
|
|
|
elif os.path.isfile(self.currentMountEntry.getMountPoint()):
|
|
|
|
|
if KMessageBox.warningContinueCancel(self,
|
|
|
|
|
i18n("""The mountpoint '%1' is a file, but it has to be a directory. You will probably not \
|
|
|
|
|
i18n("""The mountpoint '%1' is a file, but it has to be a directory. You will probably not \
|
|
|
|
|
be able to enable it.\nContinue?""").arg(self.currentMountEntry.getMountPoint()),
|
|
|
|
|
i18n("Invalid mountpoint"))!=KMessageBox.Continue:
|
|
|
|
|
return
|
|
|
|
|