Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZbPZa-00021Z-PO for pgadmin-hackers@arkaria.postgresql.org; Mon, 14 Sep 2015 08:57:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZbPZa-00071X-5q for pgadmin-hackers@arkaria.postgresql.org; Mon, 14 Sep 2015 08:57:14 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZbPZZ-0006zi-HQ for pgadmin-hackers@postgresql.org; Mon, 14 Sep 2015 08:57:13 +0000 Received: from mail-ig0-f181.google.com ([209.85.213.181]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZbPZW-0003y1-Ld for pgadmin-hackers@postgresql.org; Mon, 14 Sep 2015 08:57:12 +0000 Received: by igbkq10 with SMTP id kq10so81961922igb.0 for ; Mon, 14 Sep 2015 01:57:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=4Ugye2f1+0fqCKMIm4jQQVyciryOtYERVyuZCrUM9kA=; b=fGemxxGbPleXWgWO55oB+lwCi7tELxSrDWi1YFmzn1xo8Rmq7jxSeI/3dkDpv7I/tr qVuSdPF3WOaFDvZ1M2eWjEn3xo6cTkVRbWZNMuinHtsONFFIESX186yfuTfaqPFMW3/X jP+hmzppK+0+Y6IBRiA4rAVlEEMiQnn4+2nVewkPXxS30mVbef5iEkpOMwyQ9OqKZmDz At36dxbqa/Dj3VHdS2x7Fwj6onrBBhhAzBby0haC9yFVQbdOWjCKGW/EyZkw+ecPTWoR Oy3vvzQMg5xDyZ5+KA77z7w+1xmA8BFtwrFyvEHdVRFCbq+NWrITHimV2T2vwiAAj1wh RzLQ== X-Gm-Message-State: ALoCoQnghuC6InYZIE5SC4eJlZI/7kwgBVYImtfUNvs0zgXT9tfhlbHo1cMf+maroAaSCSiriGFd MIME-Version: 1.0 X-Received: by 10.50.138.226 with SMTP id qt2mr16375903igb.69.1442221028893; Mon, 14 Sep 2015 01:57:08 -0700 (PDT) Received: by 10.64.110.37 with HTTP; Mon, 14 Sep 2015 01:57:08 -0700 (PDT) In-Reply-To: References: Date: Mon, 14 Sep 2015 09:57:08 +0100 Message-ID: Subject: Re: Patch: New field in frmMain statusbar From: Dave Page To: Adam Scott Cc: pgadmin-hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Thanks Adam. What do others feel about this proposed patch? I can see how it might be useful, however I'm also concerned about overloading the UI with more info - and in over a decade I don't recall anyone ever asking for this feature or complaining of the issue Adam describes (though, it is clearly feasible). On Sun, Sep 13, 2015 at 4:19 PM, Adam Scott wrote: > Hi, > > please consider this patch to frmMain. > > Situation: When a user has a large number of databases and connections, > when they select a table or other object in the Object browser tree, they > can lose track of which connection and database the object belongs too. > This makes it really easy for the user to make a mistake and drop an object > on the wrong connection (such as on a Production server instead of a > Development server). Also as a user is browsing multiple databases and > connections they can lose track of which object they are working on. > > Solution: This patch adds a new field in the status bar of the main window > (frmMain), between the two other fields, keeping them the same. If there's > a currently selected object the field will display it's connection and > database. If there's no currently selected object, it will be blank. > > Here's the danger, if we display the wrong connection and database, the user > could drop the wrong object. So it's imperative this never has a bug. This > code change is so small with so little dependencies, it relies on already > used code for such a long time that if it had a bug, then there are other > bigger bugs in the code that would have already shown up. > > Regards, > Adam C. Scott > > patch generated using Tortoise Git Create Patch Serial > > > > -- > Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgadmin-hackers > -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers