Ignore:
Timestamp:
Mar 16, 2012, 4:02:47 PM (13 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: 0.7.1 trunk update

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/prefassociations.cpp

    r119 r124  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2011 Ricardo Villalba <rvm@escomposlinux.org>
     2    Copyright (C) 2006-2012 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    6262        }
    6363        retranslateStrings();
     64
     65        something_changed = false;
    6466}
    6567
     
    7476                listWidget->item(k)->setCheckState(Qt::Checked);
    7577        listWidget->setFocus();
     78
     79        something_changed = true;
    7680}
    7781
     
    8286                listWidget->item(k)->setCheckState(Qt::Unchecked);
    8387        listWidget->setFocus();
     88
     89        something_changed = true;
    8490}
    8591
    8692void PrefAssociations::listItemClicked(QListWidgetItem* item)
    8793{
     94        qDebug("PrefAssociations::listItemClicked");
     95       
    8896        if (!(item->flags() & Qt::ItemIsEnabled))
    8997                return;
     
    101109
    102110        //else - clicked on the checkbox itself, do nothing
     111       
     112        something_changed = true;
    103113}
    104114
     
    168178void PrefAssociations::getData(Preferences *)
    169179{
     180        qDebug("PrefAssociations::getData: something_changed: %d", something_changed);
     181        if (!something_changed) return;
     182       
    170183        QStringList extensions;
    171184
     
    187200       
    188201        refreshList(); //Useless when OK is pressed... How to detect if apply or ok is pressed ?
     202
     203        something_changed = false;
    189204}
    190205
     
    194209
    195210QPixmap PrefAssociations::sectionIcon() {
    196         return Images::icon("pref_associations");
     211        return Images::icon("pref_associations", 22);
    197212}
    198213
Note: See TracChangeset for help on using the changeset viewer.