Changeset 14401


Ignore:
Timestamp:
Dec 26, 2014, 2:21:47 PM (8 years ago)
Author:
mikedld
Message:

Fix directory name display in relocate dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/relocate.cc

    r14400 r14401  
    3333
    3434  const QFileInfo pathInfo (path);
     35  const QString absolutePath = pathInfo.absoluteFilePath ();
    3536  const QFileIconProvider iconProvider;
    3637
     
    3839                                 iconProvider.icon (pathInfo) :
    3940                                 iconProvider.icon (QFileIconProvider::Folder));
    40   ui.newLocationButton->setText (pathInfo.baseName ());
    41   ui.newLocationButton->setToolTip (path);
     41  ui.newLocationButton->setText (pathInfo.fileName ().isEmpty () ? absolutePath : pathInfo.fileName ());
     42  ui.newLocationButton->setToolTip (absolutePath);
    4243}
    4344
Note: See TracChangeset for help on using the changeset viewer.