logic: paths that are automatically filled by the project setup wizard will be made relative if they are shorter if the absolute paths
This commit is contained in:
@@ -52,14 +52,14 @@ void QtPathListBoxItem::handleButtonPress()
|
||||
if (!list.isEmpty())
|
||||
{
|
||||
FilePath path(list.at(0).toStdWString());
|
||||
m_listBox->makeRelative(path);
|
||||
m_listBox->makeRelativeIfShorter(path);
|
||||
setText(QString::fromStdWString(path.wstr()));
|
||||
}
|
||||
|
||||
for (int i = 1; i < list.size(); i++)
|
||||
{
|
||||
FilePath path(list.at(i).toStdWString());
|
||||
m_listBox->makeRelative(path);
|
||||
m_listBox->makeRelativeIfShorter(path);
|
||||
getListBox()->addListBoxItemWithText(QString::fromStdWString(path.wstr()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user