src: Fixed clang warnings
This commit is contained in:
@@ -93,7 +93,7 @@ void QtPathListBox::dropEvent(QDropEvent *event)
|
||||
{
|
||||
FilePath path(url.toLocalFile().toStdWString());
|
||||
makeRelative(path);
|
||||
QtListBoxItem* item = addListBoxItemWithText(QString::fromStdWString(path.wstr()));
|
||||
addListBoxItemWithText(QString::fromStdWString(path.wstr()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
#include "utility/utilityString.h"
|
||||
|
||||
QtProjectWizzardContentPaths::QtProjectWizzardContentPaths(
|
||||
std::shared_ptr<SourceGroupSettings> settings,
|
||||
QtProjectWizzardWindow* window,
|
||||
std::shared_ptr<SourceGroupSettings> settings,
|
||||
QtProjectWizzardWindow* window,
|
||||
QtPathListBox::SelectionPolicyType selectionPolicy,
|
||||
bool checkMissingPaths
|
||||
)
|
||||
@@ -120,12 +120,16 @@ bool QtProjectWizzardContentPaths::check()
|
||||
QPushButton* cancelButton = msgBox.addButton("Cancel", QMessageBox::ButtonRole::RejectRole);
|
||||
|
||||
msgBox.exec();
|
||||
|
||||
|
||||
if (msgBox.clickedButton() == removeButton)
|
||||
{
|
||||
m_list->setPaths(existingPaths);
|
||||
save();
|
||||
}
|
||||
else if (msgBox.clickedButton() == keepButton)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else if (msgBox.clickedButton() == cancelButton)
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user