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

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

Use LCCN validator when needed. Change dialog message

M  +4    -2    src/fetchdialog.cpp

https://invent.kde.org/office/tellico/-/commit/3a772ff1d814d13d6250a2b3c27c55c5243f4bb1

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.