[office/tellico] src: Use LCCN validator when needed. Change dialog message

Robby Stephenson <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit e2a3ca8600655193df76e509a5307ba35a98e532 by Robby Stephenson.
Committed on 01/08/2026 at 00:49.
Pushed by rstephenson into branch 'master'.

Use LCCN validator when needed. Change dialog message

M  +4    -2    src/fetchdialog.cpp

https://invent.kde.org/office/tellico/-/commit/e2a3ca8600655193df76e509a5307ba35a98e532

diff --git a/src/fetchdialog.cpp b/src/fetchdialog.cpp
index 2ac806ea6..2fb63d11b 100644
--- a/src/fetchdialog.cpp
+++ b/src/fetchdialog.cpp
@@ -490,7 +490,7 @@ void FetchDialog::fetchDone(bool checkISBN_) {
       const QStringList valuesNotFound = ISBNValidator::listDifference(searchValues, resultValues);
       if(!valuesNotFound.isEmpty()) {
         KMessageBox::informationList(this,
-                                     i18n("No results were found for the following ISBN values:"),
+                                     i18n("No results were found for the following values:"),
                                      valuesNotFound,
                                      i18n("No Results"));
       }
@@ -689,7 +689,7 @@ void FetchDialog::slotKeyChanged(int idx_) {
     m_multipleISBN->setEnabled(true);
     if(key == Fetch::ISBN) {
       m_valueLineEdit->setValidator(new ISBNValidator(this));
-    } else {
+    } else if(key == Fetch::UPC) {
       auto upc = new UPCValidator(this);
       connect(upc, &UPCValidator::signalISBN, this, &FetchDialog::slotUPC2ISBN);
       m_valueLineEdit->setValidator(upc);
@@ -701,6 +701,8 @@ void FetchDialog::slotKeyChanged(int idx_) {
           break;
         }
       }
+    } else if(key == Fetch::LCCN) {
+      m_valueLineEdit->setValidator(new LCCNValidator(this));
     }
   } else {
     m_multipleISBN->setChecked(false);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.