Author Topic: Empty Search Results Tab  (Read 13609 times)

AlanJB

  • VIP Member
  • *****
  • Posts: 436
  • VERY old Programmer
    • View Profile
Empty Search Results Tab
« on: July 18, 2016, 18:06:11 »
Hi Mathias.

I know you plan to eventually do away with Search Results in explorer panel tabs, but in the meantime...

The File Search Results tab is created as soon as the Find Files dialog is instantiated.
If the Find is then cancelled, the dialog is dismissed but the empty File Search Results tab remains.

Is it relatively simple to implement a change in behaviour such that the tab is closed if the Find is cancelled (one less tab to close or to be distracted by)?


TIA

Alan

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: Empty Search Results Tab
« Reply #1 on: July 19, 2016, 00:24:16 »
It is not really connected like that.

I don't think closing the dialog should close the tab.  You can start a search, then close the dialog
and the search continues and result is poping in into the list.
The only time I see a reason is if you return 0 result, but that would give the close of the dialog two very different behaviors.
sometimes it just closes the dialog, sometimes it closes the entire search module.

However if you close the tab.. the dialog will also be closed.