提交 0bf73dee 编写于 作者: M Mathieu Bastian

Fix issue with command line processor opening projects

上级 f0582955
......@@ -42,6 +42,7 @@
package org.gephi.branding.desktop;
import java.awt.event.ActionEvent;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
......@@ -112,7 +113,8 @@ public class CommandLineProcessor extends OptionProcessor {
DialogDisplayer.getDefault().notify(msg);
return;
}
Actions.forID("File", "org.gephi.desktop.project.actions.OpenFile").actionPerformed(null);
Actions.forID("File", "org.gephi.desktop.project.actions.OpenFile").actionPerformed(
new ActionEvent(file, 0, null));
}
} catch (OutOfMemoryError ex) {
System.gc();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册