Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the opening of the properties window for some users #229

Merged
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## iGame VERSION_TAG - [RELEASE_DATE]
### Fixed
- Fixed the opening of the properties window for some users, by reverting some changes from v2.4.1
- Fixed the item (demo/game) renaming from the properties window
- Fixed the addition of an item (demo/game) from the "Add game..." window. This was saved in a wrong way and was breaking the list

## iGame 2.4.4 - [2023-09-11]
### Changed
- Speedup the slavesListAddTail(), almost 200% faster. This has an impact on the slaves list creation during the scan and the loading from the file.

Expand Down
5 changes: 3 additions & 2 deletions src/funcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1279,8 +1279,9 @@ void repo_stop(void)
// Shows the Properties window populating the information fields
void slaveProperties(void)
{
char *title;
if ((title = (char *)DoMethod(app->LV_GamesList, MUIM_NList_GetEntry, MUIV_NList_GetEntry_Active, NULL)) == NULL)
char *title = NULL;
DoMethod(app->LV_GamesList, MUIM_NList_GetEntry, MUIV_NList_GetEntry_Active, &title);
if(isStringEmpty(title))
{
msg_box((const char*)GetMBString(MSG_SelectGameFromList));
return;
Expand Down
3 changes: 3 additions & 0 deletions src/strfuncs.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ STRPTR GetMBString(ULONG refId)

BOOL isStringEmpty(const char *string)
{
if (string == NULL)
return TRUE;

return string[0] == '\0';
}

Expand Down