added log message

This commit is contained in:
Jared Bruni
2022-03-19 14:43:20 -07:00
parent 5a9322c70f
commit afe57ab73d

View File

@@ -844,6 +844,11 @@ void AC_MainWindow::comboFilterChanged(int) {
stream << "Filter changed to: " << filters->currentText() << "\n"; stream << "Filter changed to: " << filters->currentText() << "\n";
Log(str); Log(str);
std::string text = filters->currentText().toStdString(); std::string text = filters->currentText().toStdString();
if(ac::v_cap.isOpened() == false && text.find("Video") != std::string::npos) {
Log(tr("Set a video file to use this filter"));
}
if(blend_set == false && text.find("Image") != std::string::npos) if(blend_set == false && text.find("Image") != std::string::npos)
Log(tr("Set an Image to use this filter\n")); Log(tr("Set an Image to use this filter\n"));