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

Cannot load user data if command line arg includes no dir name #1

Closed
iRi-E opened this issue Apr 20, 2011 · 2 comments
Closed

Cannot load user data if command line arg includes no dir name #1

iRi-E opened this issue Apr 20, 2011 · 2 comments

Comments

@iRi-E
Copy link

iRi-E commented Apr 20, 2011

When I opened a .mdf file from command line like:

cd MMDAgent_Example-rc2
QtMMDAI MMDAgent_Example.mdf

the user data such as Model and Voice could not be loaded.

If 'path' in QMAWidget::showEvent() includes no directory name, path.cdUp() takes no effect, so the file name will incorrectly remain at the end of the search path. I think the following code should fix the bug:

if (!path.cdUp()) path = QDir::current();
@hkrn
Copy link
Owner

hkrn commented Apr 20, 2011

(maybe) fixed: 802a558

This issue doesn't seem to occur using Qt 4.7.3 on MacOSX

@iRi-E
Copy link
Author

iRi-E commented Apr 22, 2011

Confirmed the problem has gone away. Thanks.

@iRi-E iRi-E closed this as completed Apr 22, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants