Fix rundialog not closing for internal commands
Signed-off-by: Adel Gadllah <adel.gadllah@gmail.com> https://bugzilla.gnome.org/show_bug.cgi?id=597076
This commit is contained in:
parent
cbb3a3aec8
commit
8a2cc11cc0
@ -148,6 +148,7 @@ RunDialog.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_run : function(command) {
|
_run : function(command) {
|
||||||
|
this._commandError = false;
|
||||||
let f;
|
let f;
|
||||||
if (this._enableInternalCommands)
|
if (this._enableInternalCommands)
|
||||||
f = this._internalCommands[command];
|
f = this._internalCommands[command];
|
||||||
@ -157,7 +158,6 @@ RunDialog.prototype = {
|
|||||||
f();
|
f();
|
||||||
} else if (command) {
|
} else if (command) {
|
||||||
try {
|
try {
|
||||||
this._commandError = false;
|
|
||||||
let [ok, len, args] = GLib.shell_parse_argv(command);
|
let [ok, len, args] = GLib.shell_parse_argv(command);
|
||||||
let p = new Shell.Process({'args' : args});
|
let p = new Shell.Process({'args' : args});
|
||||||
p.run();
|
p.run();
|
||||||
|
Loading…
Reference in New Issue
Block a user