--- CronModel.cpp 2010-08-31 10:54:29.138594293 +0530
+++ CronModel_new.cpp 2010-08-31 10:43:19.484614406 +0530
@@ -245,7 +245,7 @@
if (isOneUser()) {
for(int i=0; i<rowCount(QModelIndex()); i++) {
QModelIndex idx = index(i, 0, QModelIndex());
- if ((int)getTCommand(idx) == (int)cmnd)
+ if ((long int)getTCommand(idx) == (long int)cmnd)
return idx;
}
} else {
@@ -253,7 +253,7 @@
QModelIndex pidx = index(i, 0, QModelIndex());
for (int j=0; j<rowCount(pidx); j++) {
QModelIndex idx = index(j, 0, pidx);
- if ((int)getTCommand(idx) == (int)cmnd)
+ if ((long int)getTCommand(idx) == (long int)cmnd)
return idx;
}
}
@@ -312,8 +312,8 @@
}
// dumpIndex(ins, "CronModel::dropMimeData insert : ");
- if ((int)getTCommand(ins) == (int)drag ||
- (int)getTCommand(next) == (int)drag)
+ if ((long int)getTCommand(ins) == (long int)drag ||
+ (long int)getTCommand(next) == (long int)drag)
return false;
TCommand *t = new TCommand();