OSDN Git Service

Cleanup compiler warning messages and alter backup & restore to handle new database...
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / dialog / SetIcon.java
index daf30bd..603a54c 100644 (file)
@@ -91,6 +91,7 @@ public class SetIcon extends QDialog {
        }
        
        // Icon Button pressed
+       @SuppressWarnings("unused")
        private void iconButtonPressed() {
                QFileDialog fd = new QFileDialog(this);
                fd.setFileMode(FileMode.ExistingFile);
@@ -105,7 +106,6 @@ public class SetIcon extends QDialog {
                
                ok.setEnabled(true);
                String path = fd.selectedFiles().get(0);
-               QIcon icon = new QIcon(path);
                iconButton.setIcon(new QIcon(path));
                iconButton.setSizePolicy(Policy.Fixed, Policy.Fixed);
        }