Fix crash on UITabWidget.

Improve LSP tooltip.
Remove warnings.
This commit is contained in:
Martín Lucas Golini
2024-01-13 18:04:23 -03:00
parent 697fc29514
commit 9e764c8100
7 changed files with 28 additions and 19 deletions
+2 -2
View File
@@ -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: