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(); }