diff --git a/addurl.cpp b/addurl.cpp index 9f22434..7952d0d 100644 --- a/addurl.cpp +++ b/addurl.cpp @@ -119,7 +119,7 @@ void AddUrl::OkButton() editWeburl->setFocus(); return; } - if (linkStructure->isLinkExists(editWeburl->text())) { + if (editedRow == -1 && linkStructure->isLinkExists(editWeburl->text())) { QMessageBox::warning(this, tr("add Url"), tr("Web-Link is exsists in DB!"), diff --git a/consts.h b/consts.h index 90ae79a..564bfe5 100644 --- a/consts.h +++ b/consts.h @@ -1,7 +1,7 @@ #ifndef CONSTS_H #define CONSTS_H -const QString PROGRAM_NAME = "URLCollector v1.7"; +const QString PROGRAM_NAME = "URLCollector v1.8"; const QString PROGRAM_DIR = "/.urlcol"; const QString PROGRAM_CONFIG = "/.urlcol/url.config"; const QString LOCK_FILE = "/.urlcol/url.lock";