Name of the session in message dialogs

mbedrac's profile image mbedrac posted 3 weeks ago in General Permalink

This was implemented 11 years ago and now is gone with latest updates. When I select all tables and select drop there should be name of the session in title of confirmation dialog. And why ALT+TAB invoke DROP Database confirmation box?

Ansgar reply:

r4965 now displays the name of the session in all message dialogs, for example MySession: Confirm

Also, there was no icon in confirmation dialogs like the one mentioned above. This is also fixed now - an orange icon with a question mark should be noticeable now.

ansgar's profile image ansgar posted 3 weeks ago Permalink

Well, some things change during such a long time. I have indeed removed the session name from the dialogs caption in commit:63028518f8b0d5869383d3bc0c42f188851797ed for v12.17, due to crash reports from a number of users. I could not find another way to fix that crash.

mbedrac's profile image mbedrac posted 3 weeks ago Permalink

I'm sorry to hear that. For me it was essential feature. Perhaps you should escape string variable MainForm.ActiveConnection.Parameters.SessionName for apostrophe or some other strange characters that Caption wouldn't allow and crash.

ansgar's profile image ansgar posted 3 weeks ago Permalink

The crashes were related to a null session, not from some bad characters assigned, I think. But I will review the old code, probably I oversaw something. Crashes may have also been related to translations.

mbedrac's profile image mbedrac posted 3 weeks ago Permalink

thumbsup.jpg

Code modification/commit fd05816 from Ansgar Becker <anse@heidisql.com>, 3 weeks ago, revision 12.17.0.7286
fix: restore displayed session name in message dialog caption, was removed in commit:63028518f8b0d5869383d3bc0c42f188851797ed

See https://www.heidisql.com/forum.php?t=45080

Please login to leave a reply, or register at first.