forked from openlp/openlp
Undo
This commit is contained in:
parent
df1db913cd
commit
f73577d708
@ -694,8 +694,6 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
||||
plugin.firstTime()
|
||||
Receiver.send_message(u'openlp_process_events')
|
||||
temp_dir = os.path.join(unicode(gettempdir()), u'openlp')
|
||||
if not os.path.isdir(temp_dir):
|
||||
return
|
||||
for filename in os.listdir(temp_dir):
|
||||
os.remove(os.path.join(temp_dir, filename))
|
||||
os.removedirs(temp_dir)
|
||||
|
@ -231,8 +231,6 @@ class SongsPlugin(Plugin):
|
||||
"""
|
||||
db_dir = unicode(os.path.join(gettempdir(), u'openlp'))
|
||||
song_dbs = []
|
||||
if not os.path.isdir(db_dir):
|
||||
return
|
||||
for sfile in os.listdir(db_dir):
|
||||
if sfile.startswith(u'songs_') and sfile.endswith(u'.sqlite'):
|
||||
song_dbs.append(os.path.join(db_dir, sfile))
|
||||
|
Loading…
Reference in New Issue
Block a user