Sun, 13 Jul 2014 20:28:52 +0300
- part downloader: update the input widget with the corrected part name when guesswork is done
src/partDownloader.cc | file | annotate | diff | comparison | revisions | |
src/partDownloader.h | file | annotate | diff | comparison | revisions |
--- a/src/partDownloader.cc Sun Jul 13 17:18:44 2014 +0300 +++ b/src/partDownloader.cc Sun Jul 13 20:28:52 2014 +0300 @@ -95,7 +95,7 @@ // ============================================================================= // -QString PartDownloader::getURL() const +QString PartDownloader::getURL() { const Source src = getSource(); QString dest; @@ -105,6 +105,7 @@ case PartsTracker: dest = interface()->fname->text(); modifyDestination (dest); + interface()->fname->setText (dest); return g_unofficialLibraryURL + dest; case CustomURL:
--- a/src/partDownloader.h Sun Jul 13 17:18:44 2014 +0300 +++ b/src/partDownloader.h Sun Jul 13 20:28:52 2014 +0300 @@ -71,7 +71,7 @@ void downloadFile (QString dest, QString url, bool primary); QPushButton* getButton (Button i); - QString getURL() const; + QString getURL(); Source getSource() const; void modifyDestination (QString& dest) const;