Use the canonical file name also for the "already open" check
[GPXSee.git] / src / GUI / poiaction.h
blobeca5a17c48a5cb0df9dfbac430db8c14994dbd86
1 #ifndef POIACTION_H
2 #define POIACTION_H
4 #include <QAction>
5 #include "common/util.h"
7 class POIAction : public QAction
9 Q_OBJECT
11 public:
12 POIAction(const QString &path, QObject *parent = 0)
13 : QAction(Util::file2name(path), parent)
15 setMenuRole(QAction::NoRole);
16 setCheckable(true);
17 setData(path);
21 #endif // POIACTION_H