mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 17:49:52 +01:00
Fix directory name display in relocate dialog
This commit is contained in:
+3
-2
@@ -32,13 +32,14 @@ RelocateDialog::onFileSelected (const QString& path)
|
||||
myPath = path;
|
||||
|
||||
const QFileInfo pathInfo (path);
|
||||
const QString absolutePath = pathInfo.absoluteFilePath ();
|
||||
const QFileIconProvider iconProvider;
|
||||
|
||||
ui.newLocationButton->setIcon (mySession.isLocal () ?
|
||||
iconProvider.icon (pathInfo) :
|
||||
iconProvider.icon (QFileIconProvider::Folder));
|
||||
ui.newLocationButton->setText (pathInfo.baseName ());
|
||||
ui.newLocationButton->setToolTip (path);
|
||||
ui.newLocationButton->setText (pathInfo.fileName ().isEmpty () ? absolutePath : pathInfo.fileName ());
|
||||
ui.newLocationButton->setToolTip (absolutePath);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user