From 851a242761b879ebbbab79f8f9004a7ca9261ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Panzenb=C3=B6ck?= Date: Sat, 15 Feb 2014 06:53:41 +0100 Subject: [PATCH] actually use --devdir argument --- src/layout.cpp | 1 - src/layout.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) 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;