We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b375297 commit 2aab617Copy full SHA for 2aab617
1 file changed
Qarma.cpp
@@ -560,11 +560,14 @@ void Qarma::dialogFinished(int status)
560
QStringList result;
561
if (tw) {
562
QVariant v = sender()->property("qarma_print_column");
563
- int column = v.toString() == "ALL" ? -1 : v.toInt();
564
- if (column > tw->columnCount())
565
- column = -1;
566
- else if (column > 0)
567
- --column;
+ int column = 1;
+ if (v.isValid()) {
+ column = v.toString() == "ALL" ? -1 : v.toInt();
+ if (column > tw->columnCount())
+ column = -1;
568
+ else if (column > 0)
569
+ --column;
570
+ }
571
bool done(false);
572
auto text = [=](const QTreeWidgetItem *twi, int col, int offset) {
573
if (col > -1)
0 commit comments