diff --git a/src/layout.cpp b/src/layout.cpp index 33126ba..6e72a6f 100644 --- a/src/layout.cpp +++ b/src/layout.cpp @@ -308,7 +308,6 @@ void LayoutManager::fillPopup() { void LayoutManager::updateJoyDevs() { debug_mesg("updating joydevs\n"); - QString devdir = DEVDIR; //reset all joydevs to sentinal value (-1) foreach (JoyPad *joypad, joypads) { diff --git a/src/layout.h b/src/layout.h index 759e3a2..aa61319 100644 --- a/src/layout.h +++ b/src/layout.h @@ -34,6 +34,8 @@ //where QJoyPad saves its settings! const QString settingsDir(QDir::homePath() + "/.qjoypad3/"); +extern QString devdir; + //handles loading, saving, and changing of layouts class LayoutManager : public QObject { friend class LayoutEdit;