93 delete interface(); |
93 delete interface(); |
94 } |
94 } |
95 |
95 |
96 // ============================================================================= |
96 // ============================================================================= |
97 // |
97 // |
98 QString PartDownloader::getURL() const |
98 QString PartDownloader::getURL() |
99 { |
99 { |
100 const Source src = getSource(); |
100 const Source src = getSource(); |
101 QString dest; |
101 QString dest; |
102 |
102 |
103 switch (src) |
103 switch (src) |
104 { |
104 { |
105 case PartsTracker: |
105 case PartsTracker: |
106 dest = interface()->fname->text(); |
106 dest = interface()->fname->text(); |
107 modifyDestination (dest); |
107 modifyDestination (dest); |
|
108 interface()->fname->setText (dest); |
108 return g_unofficialLibraryURL + dest; |
109 return g_unofficialLibraryURL + dest; |
109 |
110 |
110 case CustomURL: |
111 case CustomURL: |
111 return interface()->fname->text(); |
112 return interface()->fname->text(); |
112 } |
113 } |