mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Fix silly error in -loadGModelNamed:owner:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6523 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
75ff71a0d5
commit
66ae5be420
1 changed files with 2 additions and 1 deletions
|
@ -54,7 +54,8 @@ void __dummy_IMLoading_functionForLinking()
|
|||
gmodelName = [gmodelName stringByDeletingPathExtension];
|
||||
|
||||
/* Use owner's bundle (if any) just like +loadNibNamed:owner: does. */
|
||||
bundle = [NSBundle bundleForClass: owner];
|
||||
bundle = [NSBundle bundleForClass: [owner class]];
|
||||
|
||||
if (bundle == nil)
|
||||
bundle = [NSBundle mainBundle];
|
||||
|
||||
|
|
Loading…
Reference in a new issue