# HG changeset patch # User Teemu Piippo # Date 1405272532 -10800 # Node ID 5f822ad6187531b97e08937b7410c07f01844a1e # Parent 8f58e12496874e84673d5c7d8936aefd1037e6b2 - part downloader: update the input widget with the corrected part name when guesswork is done diff -r 8f58e1249687 -r 5f822ad61875 src/partDownloader.cc --- 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: diff -r 8f58e1249687 -r 5f822ad61875 src/partDownloader.h --- 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;