[haiku-bugs] Re: [Haiku] #9663: BRefFilter not Filtering

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Fri, 12 Apr 2013 03:12:24 -0000

#9663: BRefFilter not Filtering
-------------------------+-------------------------
   Reporter:  scanty     |      Owner:  nobody
       Type:  bug        |     Status:  new
   Priority:  normal     |  Milestone:  R1
  Component:  - General  |    Version:  R1/alpha4.1
 Resolution:             |   Keywords:
 Blocked By:             |   Blocking:
Has a Patch:  0          |   Platform:  All
-------------------------+-------------------------

Comment (by anevilyak):

 The filter class itself looks ok. Without seeing how you're attaching it
 however, it's not possible to tell where you might be going wrong here. A
 simple test as follows invokes the filter correctly here though, which
 would seem to indicate that your problem is not the filter itself, but
 attaching it to the panel:

 {{{
 #include <Application.h>
 #include <FilePanel.h>
 #include <stdio.h>

 #include "RomPanel.h"

 int main(int, char **)
 {
         BApplication app("application/x-vnd.blah-filepaneltest");

         BFilePanel* panel = new BFilePanel(B_OPEN_PANEL);
         panel->SetRefFilter(new ROMFilter());
         panel->Show();

         app.Run();

         return B_OK;
 }

 }}}

--
Ticket URL: <http://dev.haiku-os.org/ticket/9663#comment:1>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: