diff options
-rw-r--r-- | extras/MonoDevelop.Database/MonoDevelop.Database.Query/Commands/ToolCommands.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extras/MonoDevelop.Database/MonoDevelop.Database.Query/Commands/ToolCommands.cs b/extras/MonoDevelop.Database/MonoDevelop.Database.Query/Commands/ToolCommands.cs index 19fc4a034e..7730080908 100644 --- a/extras/MonoDevelop.Database/MonoDevelop.Database.Query/Commands/ToolCommands.cs +++ b/extras/MonoDevelop.Database/MonoDevelop.Database.Query/Commands/ToolCommands.cs @@ -42,6 +42,11 @@ namespace MonoDevelop.Database.Query public class QueryHandler : CommandHandler { + protected override void Update (CommandInfo info) + { + info.Enabled = ConnectionContextService.DatabaseConnections.Count > 0; + } + protected override void Run () { SqlQueryView view = new SqlQueryView (); |