*! Fix problem with the 'All' group in history.

The value of it is too large for a signed int.
This commit is contained in:
Konstantin Isakov 2009-10-21 20:06:17 +00:00
parent 9ee8210c1f
commit 5c3fb7c023
2 changed files with 4 additions and 5 deletions

View file

@ -1122,17 +1122,16 @@ void MainWindow::mutedDictionariesChanged()
}
void MainWindow::showTranslationFor( QString const & inWord,
int inGroup )
unsigned inGroup )
{
ArticleView & view =
dynamic_cast< ArticleView & >( *( ui.tabWidget->currentWidget() ) );
navPronounce->setEnabled( false );
unsigned group = inGroup < 0 ?
unsigned group = inGroup ? inGroup :
( groupInstances.empty() ? 0 :
groupInstances[ groupList.currentIndex() ].id ):
inGroup;
groupInstances[ groupList.currentIndex() ].id );
view.showDefinition( inWord, group );

View file

@ -202,7 +202,7 @@ private slots:
void mutedDictionariesChanged();
void showTranslationFor( QString const &, int inGroup = -1 );
void showTranslationFor( QString const &, unsigned inGroup = 0 );
void trayIconActivated( QSystemTrayIcon::ActivationReason );