Fixed bug with automatically opening database

When the user opened a database from the recent list, enabled automatic opening and canceled the opening dialog the database was opened again. Now the database does not open again on cancel database opening.