Log Message:
-----------
Rollback unintentional commit.

Modified Files:
--------------
    pgadmin3/src/ui:
        frmQuery.cpp (r1.66 -> r1.67)

Index: frmQuery.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/frmQuery.cpp,v
retrieving revision 1.66
retrieving revision 1.67
diff -Lsrc/ui/frmQuery.cpp -Lsrc/ui/frmQuery.cpp -u -w -r1.66 -r1.67
--- src/ui/frmQuery.cpp
+++ src/ui/frmQuery.cpp
@@ -91,7 +91,6 @@
     mainForm=form;
     title = _title;
     conn=_conn;
-       loaded = false;
 
     SetIcon(wxIcon(sql_xpm));
     wxWindowBase::SetFont(settings->GetSystemFont());
@@ -220,8 +219,9 @@
     horizontal->SplitHorizontally(sqlQuery, output, splitpos);
 
     sqlQuery->SetText(query);
-       changed = false;
-
+    changed = !query.IsNull() && settings->GetStickySql();
+    if (changed)
+        setExtendedTitle();
     updateMenu();
     queryMenu->Enable(MNU_SAVEHISTORY, false);
     queryMenu->Enable(MNU_CLEARHISTORY, false);
@@ -333,7 +333,6 @@
 {
     Show(TRUE);
     sqlQuery->SetFocus();
-       loaded = true;
 }
 
 
@@ -546,7 +545,6 @@
 void frmQuery::setExtendedTitle()
 {
     wxString chgStr;
-
     if (changed)
         chgStr = wxT(" *");
 
@@ -623,9 +621,6 @@
 
 void frmQuery::OnChangeStc(wxStyledTextEvent& event)
 {
-       if (!loaded)
-               return;
-
     if (!changed)
     {
         changed=true;
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [EMAIL PROTECTED] so that your
      message can get through to the mailing list cleanly

Reply via email to