From 53024af1a6f5f9f27a748cbd30473b2398eafba6 Mon Sep 17 00:00:00 2001 From: zvon Date: Tue, 25 Feb 2020 10:03:59 +0100 Subject: [PATCH] Databasewindow: assume that language/tvid is correct since it's from combobox/searchwindow --- databasewindow.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/databasewindow.cpp b/databasewindow.cpp index 9fed144..b268cfd 100644 --- a/databasewindow.cpp +++ b/databasewindow.cpp @@ -228,15 +228,9 @@ void DatabaseWindow::remove() { void DatabaseWindow::changed( const Gtk::TreeModel::Path & /*UNUSED*/, const Gtk::TreeModel::iterator &row ) { std::string path = ( *row )[m_columns_database.m_col_path]; - std::string lang = ( *row )[m_columns_database.m_col_lang]; - std::string show_id = ( *row )[m_columns_database.m_col_show_id]; if ( !FSLib::isDirectory( path ) ) { return errorPath( path ); - } else if ( !findLanguage( lang.c_str() ) ) { - return errorLanguage( lang ); - } else if ( !validID( show_id ) ) { - return errorID( show_id ); } changed_rows.insert( @@ -249,19 +243,6 @@ void DatabaseWindow::errorPath( const std::string &path ) { d.run(); } -void DatabaseWindow::errorLanguage( const std::string &lang ) { - Gtk::MessageDialog d( *this, "Invalid language", false, - Gtk::MESSAGE_ERROR ); - d.set_secondary_text( "Language '" + lang + "' isn't valid" ); - d.run(); -} - -void DatabaseWindow::errorID( const std::string &show_id ) { - Gtk::MessageDialog d( *this, "Invalid ID", false, Gtk::MESSAGE_ERROR ); - d.set_secondary_text( "ID '" + show_id + "' isn't valid" ); - d.run(); -} - void DatabaseWindow::quit() { hide(); }