X-Git-Url: https://www.flypig.org.uk/git/?a=blobdiff_plain;f=src%2FOpenVPNUI.cpp;h=40e28ef45f0d9560c5d5f9377b717380854861cb;hb=ee3968ffa08d4e0fcbad87765efa3aeb32ff0554;hp=7575cb3e38b12b764c691a52d11a13e9fcfa4237;hpb=3aba2d3bed67a9d91350393dd4772f566aca7db1;p=openvpnui.git diff --git a/src/OpenVPNUI.cpp b/src/OpenVPNUI.cpp index 7575cb3..40e28ef 100644 --- a/src/OpenVPNUI.cpp +++ b/src/OpenVPNUI.cpp @@ -1,6 +1,6 @@ /* - Copyright (C) 2013 Jolla Ltd. - Contact: Thomas Perl + Copyright (C) 2014 David Llewellyn-Jones + Contact: David Llewellyn-Jones All rights reserved. You may use this file under the terms of BSD license as follows: @@ -26,6 +26,10 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + Built using the standard template from Jolla + Copyright (C) 2013 Jolla Ltd. + Contact: Thomas Perl */ #ifdef QT_QML_DEBUG @@ -52,6 +56,13 @@ int main(int argc, char *argv[]) // To display the view, call "show()" (will show fullscreen on device). QScopedPointer app(SailfishApp::application(argc, argv)); + + // These values are used by QSettings to access the config file in + // /home/nemo/.local/share/flypig/OpenVPNUI.conf + QCoreApplication::setOrganizationName("flypig"); + QCoreApplication::setOrganizationDomain("www.flypig.co.uk"); + QCoreApplication::setApplicationName("OpenVPNUI"); + QScopedPointer view(SailfishApp::createView()); view->setSource(SailfishApp::pathTo("qml/OpenVPNUI.qml"));