You're welcome to send it there. It should apply cleanly on the master
 branch.
Simple as that.

If something is wrong, please let me know.


From 1d8da09870f27e0463139badd1d303cae8332341 Mon Sep 17 00:00:00 2001
From: Vinicius Santos <[email protected]>
Date: Sat, 6 Aug 2011 00:02:26 -0300
Subject: [PATCH] Implement enable/disable save button, on text change.

---
 pgadmin/frm/frmQuery.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/pgadmin/frm/frmQuery.cpp b/pgadmin/frm/frmQuery.cpp
index c62eb79..402ea3a 100644
--- a/pgadmin/frm/frmQuery.cpp
+++ b/pgadmin/frm/frmQuery.cpp
@@ -1368,6 +1368,9 @@ void frmQuery::setExtendedTitle()
        {
                SetTitle(title + wxT(" - [") + lastPath + wxT("]") + chgStr);
        }
+
+       toolBar->EnableTool(MNU_SAVE, changed);
+       fileMenu->Enable(MNU_SAVE, changed);
 }
 
 bool frmQuery::relatesToWindow(wxWindow *which, wxWindow *related)
-- 
1.7.4.msysgit.0

-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

Reply via email to