Commit 7369aa42 authored by Michael Catanzaro's avatar Michael Catanzaro

profile-migrator: Don't try to migrate URLs table if no history exists

This causes warnings to appear when running a fresh profile for the
first time.
parent d0e5c8ff
......@@ -223,6 +223,9 @@ migrate_new_urls_table (void)
GError *error = NULL;
filename = g_build_filename (ephy_dot_dir (), EPHY_HISTORY_FILE, NULL);
if (!g_file_test (filename, G_FILE_TEST_EXISTS))
return;
history_database = ephy_sqlite_connection_new (EPHY_SQLITE_CONNECTION_MODE_READWRITE);
ephy_sqlite_connection_open (history_database, filename, &error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment