fix sorting of names

This commit is contained in:
Akash Mozumdar 2021-06-30 20:58:04 -06:00
parent a566818ad4
commit 50f5b183f1
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ extern const char* EXTEN_WINDOW_INSTRUCTIONS;
namespace
{
constexpr auto EXTEN_SAVE_FILE = u8"SavedExtensions.txt";
constexpr auto DEFAULT_EXTENSIONS = u8"Remove Repeated Characters>Remove Repeated Phrases>Regex Filter>Copy to Clipboard>Google Translate>Extra Window>Extra Newlines>Styler";
constexpr auto DEFAULT_EXTENSIONS = u8"Remove Repeated Characters>Regex Filter>Copy to Clipboard>Google Translate>Extra Window>Extra Newlines>Styler";
struct Extension
{

View File

@ -185,7 +185,7 @@ namespace
processesMap.insert(fileName, processId);
}
}
std::sort(processIcons.begin(), processIcons.end());
std::sort(processIcons.begin(), processIcons.end(), [](auto one, auto two) { return QString::compare(one.first, two.first, Qt::CaseInsensitive) < 0; });
AttachProcessDialog attachProcessDialog(This, processIcons);
if (attachProcessDialog.exec())