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:
mlangkabel
2018-06-15 18:39:03 +02:00
parent b6588cd6ba
commit bbf462d1fb
10 changed files with 74 additions and 152 deletions
+2 -2
View File
@@ -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()));
}