diff --git a/mainwindow.cpp b/mainwindow.cpp index e184f83..0db0790 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -502,7 +502,6 @@ void MainWindow::dbAdd() { } auto iter = m_combo_possible->get_active(); - std::string input_pattern = m_entry_pattern->get_text(); std::string show = static_cast< Glib::ustring >( ( *iter )[m_columns_show.m_col_show] ); @@ -522,7 +521,7 @@ void MainWindow::dbAdd() { std::thread t( addToDB, std::move( show ), m_entry_dir->get_text(), std::move( language_code ), std::move( show_id ), - m_entry_pattern->get_text(), !m_check_linux->get_active(), + getDBPattern(), !m_check_linux->get_active(), m_check_dvd->get_active(), pw ); t.detach(); pw->show();