This commit is contained in:
Mattias Põldaru 2011-03-30 21:52:58 +03:00
parent df1db913cd
commit f73577d708
2 changed files with 0 additions and 4 deletions

View File

@ -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)

View File

@ -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))