mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
*! Fix problem with the 'All' group in history.
The value of it is too large for a signed int.
This commit is contained in:
parent
9ee8210c1f
commit
5c3fb7c023
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue