- pep8 (one ident)

This commit is contained in:
Olli Suutari 2016-10-04 10:27:08 +03:00
parent 036907eb5e
commit 869caa9bf5
2 changed files with 5 additions and 4 deletions

View File

@ -208,8 +208,8 @@ class OpenLP(OpenLPMixin, QtWidgets.QApplication):
# If data_version is different from the current version ask if we should backup the data folder
elif data_version != openlp_version:
if QtWidgets.QMessageBox.question(None, translate('OpenLP', 'Backup'),
translate('OpenLP', 'OpenLP has been upgraded, do you want to\ncreate '
'a backup of the old data folder?'),
translate('OpenLP', 'OpenLP has been upgraded, do you want to create '
'a backup of OpenLPs data folder?'),
QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No,
QtWidgets.QMessageBox.Yes) == QtWidgets.QMessageBox.Yes:
# Create copy of data folder
@ -223,7 +223,7 @@ class OpenLP(OpenLPMixin, QtWidgets.QApplication):
translate('OpenLP', 'Backup of the data folder failed!'))
return
message = translate('OpenLP',
'A backup of the data folder has been created in:\n\n'
'A backup of the data folder has been created at:/n'
'{text}').format(text=data_folder_backup_path)
QtWidgets.QMessageBox.information(None, translate('OpenLP', 'Backup'), message)

View File

@ -328,6 +328,7 @@ def create_separated_list(string_list):
return_list = ""
return return_list
from .exceptions import ValidationError
from .filedialog import FileDialog
from .screen import ScreenList