Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Aug 16th, 2018 72 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. diff --git a/ui/drivers/qt/ui_qt_window.cpp b/ui/drivers/qt/ui_qt_window.cpp
  2. index cf5ee3309f..096f0c4e06 100644
  3. --- a/ui/drivers/qt/ui_qt_window.cpp
  4. +++ b/ui/drivers/qt/ui_qt_window.cpp
  5. @@ -73,6 +73,7 @@ extern "C" {
  6.  #define HIRA_KATA_OFFSET (KATAKANA_START - HIRAGANA_START)
  7.  
  8.  static ui_window_qt_t ui_window = {0};
  9. +bool load_core_locked_mode = false;
  10.  
  11.  enum CoreSelection
  12.  {
  13. @@ -1255,6 +1256,7 @@ void MainWindow::onLaunchWithComboBoxIndexChanged(int)
  14.     if (coreSelection == CORE_SELECTION_LOAD_CORE)
  15.     {
  16.        onLoadCoreClicked();
  17. +      load_core_locked_mode = true;
  18.     }
  19.     else
  20.     {
  21. @@ -1809,6 +1811,8 @@ void MainWindow::onRunClicked()
  22.     {
  23.        QTableWidgetItem *item = m_tableWidget->currentItem();
  24.        QStringList extensionFilters;
  25. +      
  26. +      load_core_locked_mode = false;
  27.  
  28.        if (item)
  29.        {
  30. @@ -2006,7 +2010,7 @@ void MainWindow::setCoreActions()
  31.     else
  32.        m_startCorePushButton->hide();
  33.  
  34. -   if (isCoreLoaded() && m_settings->value("suggest_loaded_core_first", false).toBool())
  35. +   if (isCoreLoaded() && (m_settings->value("suggest_loaded_core_first", false).toBool() || load_core_locked_mode))
  36.     {
  37.        QVariantMap comboBoxMap;
  38.        comboBoxMap["core_name"] = m_currentCore;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top