Changeset 2367

Show
Ignore:
Timestamp:
03/01/08 17:11:52 (10 months ago)
Author:
edmanm
Message:

r153@lysithea: edmanm | 2008-03-01 17:11:45 -0500

Apply the changes for settings pages in the same order in which the pages
appear in the Settings dialog. The only two pages for which this matters
are the 'Network' and 'Sharing' pages. Fixes arma's ticket #336.

Location:
vidalia/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • vidalia/trunk/CHANGELOG

    r2341 r2367  
    2929  o Don't let users save an empty string for a Tor executable in the Settings 
    3030    dialog. 
     31  o Apply the changes for settings pages in the same order in which the pages 
     32    appear in the Settings dialog. The only two pages for which this matters 
     33    are the 'Network' and 'Sharing' pages. (Ticket #336) 
    3134  o Old Jabber clients apparently use port 5223 for encrypted connections. So, 
    3235    include that port as part of the "Instant Messaging" exit policy checkbox. 
  • vidalia/trunk/src/vidalia/config/configpagestack.cpp

    r2362 r2367  
    5757} 
    5858 
     59/** Returns a list of all pages in the stack. The order of the pages in the 
     60 * returned QList is the same as the order in which the pages were initially 
     61 * added to the stack. */ 
     62QList<ConfigPage *> 
     63ConfigPageStack::pages() const 
     64{ 
     65  QList<ConfigPage *> pages; 
     66  for (int i = 0; i < count(); i++) 
     67    pages << dynamic_cast<ConfigPage *>(widget(i)); 
     68  return pages; 
     69} 
     70 
  • vidalia/trunk/src/vidalia/config/configpagestack.h

    r2362 r2367  
    3838  /** Sets the current config page index and checks its action. */ 
    3939  void setCurrentIndex(int index); 
     40   
     41  /** Returns a list of all pages in the stack. The order of the pages in the 
     42   * returned QList is the same as the order in which the pages were 
     43   * initially added to the stack. */ 
     44  QList<ConfigPage *> pages() const; 
    4045 
    41   /** Returns a list of all pages in the stack. */ 
    42   QList<ConfigPage*> pages() { return _pages.values(); } 
    43    
    4446public slots: 
    4547  /** Displays the page associated with the activated action. */