Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/nfd_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ NFD_OpenDialog(const nfdchar_t* filterList, const nfdchar_t* defaultPath, nfdcha
SetDefaultFile(fileOpenDialog, defaultPath);

// Show the dialog.
result = fileOpenDialog->Show(NULL);
result = fileOpenDialog->Show(::GetActiveWindow());
if (SUCCEEDED(result)) {
// Get the file name
::IShellItem* shellItem(NULL);
Expand Down Expand Up @@ -542,7 +542,7 @@ NFD_OpenDialogMultiple(const nfdchar_t* filterList,
}

// Show the dialog.
result = fileOpenDialog->Show(NULL);
result = fileOpenDialog->Show(::GetActiveWindow());
if (SUCCEEDED(result)) {
IShellItemArray* shellItems;
result = fileOpenDialog->GetResults(&shellItems);
Expand Down Expand Up @@ -613,7 +613,7 @@ NFD_SaveDialog(const nfdchar_t* filterList, const nfdchar_t* defaultPath, nfdcha
SetDefaultFile(fileSaveDialog, defaultPath);

// Show the dialog.
result = fileSaveDialog->Show(NULL);
result = fileSaveDialog->Show(::GetActiveWindow());
if (SUCCEEDED(result)) {
// Get the file name
::IShellItem* shellItem;
Expand Down Expand Up @@ -698,7 +698,7 @@ NFD_PickFolder(const nfdchar_t* defaultPath, nfdchar_t** outPath)
}

// Show the dialog to the user
result = fileDialog->Show(NULL);
result = fileDialog->Show(::GetActiveWindow());
if (SUCCEEDED(result)) {
// Get the folder name
::IShellItem* shellItem(NULL);
Expand Down