mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-18 11:33:23 +03:00
Fix crash on UITabWidget.
Improve LSP tooltip. Remove warnings.
This commit is contained in:
@@ -112,7 +112,7 @@ class GitBranchModel : public Model {
|
||||
size_t columnCount( const ModelIndex& ) const { return 4; }
|
||||
|
||||
Variant data( const ModelIndex& index, ModelRole role ) const {
|
||||
if ( role == ModelRole::Display && index.row() < mBranches.size() ) {
|
||||
if ( role == ModelRole::Display && index.row() < (Int64)mBranches.size() ) {
|
||||
const Git::Branch& branch = mBranches[index.row()];
|
||||
switch ( index.column() ) {
|
||||
case Column::Name:
|
||||
@@ -147,7 +147,7 @@ class GitStatusModel : public Model {
|
||||
size_t columnCount( const ModelIndex& ) const { return 4; }
|
||||
|
||||
Variant data( const ModelIndex& index, ModelRole role ) const {
|
||||
if ( role == ModelRole::Display && index.row() < mStatus.size() ) {
|
||||
if ( role == ModelRole::Display && index.row() < (Int64)mStatus.size() ) {
|
||||
const Git::DiffFile& s = mStatus[index.row()];
|
||||
switch ( index.column() ) {
|
||||
case Column::File:
|
||||
|
||||
Reference in New Issue
Block a user