show roster when there are no old and new logs
This commit is contained in:
parent
fa764c1379
commit
e95cd81587
|
@ -1884,10 +1884,9 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
# Migrate old logs if we have such olds logs
|
# Migrate old logs if we have such olds logs
|
||||||
from common import logger
|
from common import logger
|
||||||
|
from migrate_logs_to_dot9_db import PATH_TO_LOGS_BASE_DIR
|
||||||
LOG_DB_PATH = logger.LOG_DB_PATH
|
LOG_DB_PATH = logger.LOG_DB_PATH
|
||||||
if not os.path.exists(LOG_DB_PATH):
|
if not os.path.exists(LOG_DB_PATH) and os.path.isdir(PATH_TO_LOGS_BASE_DIR):
|
||||||
import migrate_logs_to_dot9_db
|
|
||||||
if os.path.isdir(migrate_logs_to_dot9_db.PATH_TO_LOGS_BASE_DIR):
|
|
||||||
import Queue
|
import Queue
|
||||||
q = Queue.Queue(100)
|
q = Queue.Queue(100)
|
||||||
dialog = dialogs.ProgressDialog(_('Migrating Logs...'),
|
dialog = dialogs.ProgressDialog(_('Migrating Logs...'),
|
||||||
|
@ -1906,7 +1905,6 @@ if __name__ == '__main__':
|
||||||
m = MigrateCommand(on_result)
|
m = MigrateCommand(on_result)
|
||||||
m.set_idlequeue(idlequeue)
|
m.set_idlequeue(idlequeue)
|
||||||
m.start()
|
m.start()
|
||||||
gtk.main()
|
|
||||||
else:
|
else:
|
||||||
check_paths.check_and_possibly_create_paths()
|
check_paths.check_and_possibly_create_paths()
|
||||||
Interface()
|
Interface()
|
||||||
|
|
Loading…
Reference in New Issue